mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 08:33:20 +00:00
Merge branch 'main' of https://github.com/ManishMadan2882/docsgpt
This commit is contained in:
@@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<img src="https://d3dg1063dc54p9.cloudfront.net/videos/demov4.gif" alt="video-example-of-docs-gpt" width="800" height="450">
|
<img src="https://d3dg1063dc54p9.cloudfront.net/videos/demov7.gif" alt="video-example-of-docs-gpt" width="800" height="450">
|
||||||
</div>
|
</div>
|
||||||
<h3 align="left">
|
<h3 align="left">
|
||||||
<strong>Key Features:</strong>
|
<strong>Key Features:</strong>
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ class BraveRetSearch(BaseRetriever):
|
|||||||
for doc in docs:
|
for doc in docs:
|
||||||
yield {"source": doc}
|
yield {"source": doc}
|
||||||
|
|
||||||
if len(self.chat_history) > 1:
|
if len(self.chat_history) > 0:
|
||||||
for i in self.chat_history:
|
for i in self.chat_history:
|
||||||
if "prompt" in i and "response" in i:
|
if "prompt" in i and "response" in i:
|
||||||
messages_combine.append({"role": "user", "content": i["prompt"]})
|
messages_combine.append({"role": "user", "content": i["prompt"]})
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ class ClassicRAG(BaseRetriever):
|
|||||||
for doc in docs:
|
for doc in docs:
|
||||||
yield {"source": doc}
|
yield {"source": doc}
|
||||||
|
|
||||||
if len(self.chat_history) > 1:
|
if len(self.chat_history) > 0:
|
||||||
for i in self.chat_history:
|
for i in self.chat_history:
|
||||||
if "prompt" in i and "response" in i:
|
if "prompt" in i and "response" in i:
|
||||||
messages_combine.append({"role": "user", "content": i["prompt"]})
|
messages_combine.append({"role": "user", "content": i["prompt"]})
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ class DuckDuckSearch(BaseRetriever):
|
|||||||
for doc in docs:
|
for doc in docs:
|
||||||
yield {"source": doc}
|
yield {"source": doc}
|
||||||
|
|
||||||
if len(self.chat_history) > 1:
|
if len(self.chat_history) > 0:
|
||||||
for i in self.chat_history:
|
for i in self.chat_history:
|
||||||
if "prompt" in i and "response" in i:
|
if "prompt" in i and "response" in i:
|
||||||
messages_combine.append({"role": "user", "content": i["prompt"]})
|
messages_combine.append({"role": "user", "content": i["prompt"]})
|
||||||
|
|||||||
Reference in New Issue
Block a user