Skip to content

Commit

Permalink
updated entities param
Browse files Browse the repository at this point in the history
  • Loading branch information
vasanthasaikalluri committed Sep 12, 2024
1 parent 21dd283 commit ccfabc7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions backend/src/QA_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def format_documents(documents, model):

formatted_docs = []
sources = set()
lc_entities = {}
lc_entities = {'entities':list()}

for doc in sorted_documents:
try:
Expand Down Expand Up @@ -357,12 +357,12 @@ def process_chat_response(messages,history, question, model, graph, document_nam
try:
llm, doc_retriever, model_version = setup_chat(model, graph, document_names,chat_mode_settings)

docs = retrieve_documents(doc_retriever, messages)
docs = retrieve_documents(doc_retriever, messages)
if docs:
content, result, total_tokens = process_documents(docs, question, messages, llm, model,chat_mode_settings)
else:
content = "I couldn't find any relevant documents to answer your question."
result = {"sources": [], "chunkdetails": []}
result = {"sources": [], "chunkdetails": [],"entities":[]}
total_tokens = 0

ai_response = AIMessage(content=content)
Expand Down
1 change: 0 additions & 1 deletion backend/src/shared/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@
}} as outside
"""


LOCAL_COMMUNITY_SEARCH_QUERY_SUFFIX = """
RETURN {chunks: [c in chunks | c.text],
communities: [c in communities | c.summary],
Expand Down

0 comments on commit ccfabc7

Please sign in to comment.