Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ManishMadan2882 committed Jan 28, 2025
2 parents 83e4023 + a14701b commit 8c91864
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

</div>
<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>
<h3 align="left">
<strong>Key Features:</strong>
Expand Down
2 changes: 1 addition & 1 deletion application/retriever/brave_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def gen(self):
for doc in docs:
yield {"source": doc}

if len(self.chat_history) > 1:
if len(self.chat_history) > 0:
for i in self.chat_history:
if "prompt" in i and "response" in i:
messages_combine.append({"role": "user", "content": i["prompt"]})
Expand Down
2 changes: 1 addition & 1 deletion application/retriever/classic_rag.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def gen(self):
for doc in docs:
yield {"source": doc}

if len(self.chat_history) > 1:
if len(self.chat_history) > 0:
for i in self.chat_history:
if "prompt" in i and "response" in i:
messages_combine.append({"role": "user", "content": i["prompt"]})
Expand Down
2 changes: 1 addition & 1 deletion application/retriever/duckduck_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def gen(self):
for doc in docs:
yield {"source": doc}

if len(self.chat_history) > 1:
if len(self.chat_history) > 0:
for i in self.chat_history:
if "prompt" in i and "response" in i:
messages_combine.append({"role": "user", "content": i["prompt"]})
Expand Down

0 comments on commit 8c91864

Please sign in to comment.