ppsingh commited on
Commit
c7e3ba0
·
verified ·
1 Parent(s): a770b5e

Update utils/vectorstore_interface.py

Browse files
Files changed (1) hide show
  1. utils/vectorstore_interface.py +4 -4
utils/vectorstore_interface.py CHANGED
@@ -129,14 +129,14 @@ class QdrantVectorStore(VectorStoreInterface):
129
  # Format results to match expected output format
130
  results = []
131
  for hit in search_result:
132
- raw_content = hit.payload.get('text', '')
133
  # Process content to handle malformed nested list structures
134
  processed_content = process_content(raw_content)
135
 
136
  result_dict = {
137
- 'answer': processed_content,
138
- 'answer_metadata': hit.payload.get('metadata', {}),
139
- 'score': hit.score
140
  }
141
  results.append(result_dict)
142
 
 
129
  # Format results to match expected output format
130
  results = []
131
  for hit in search_result:
132
+ raw_content = hit.payload.get("text", "")
133
  # Process content to handle malformed nested list structures
134
  processed_content = process_content(raw_content)
135
 
136
  result_dict = {
137
+ "answer": processed_content,
138
+ "answer_metadata": hit.payload.get("metadata", {}),
139
+ "score": hit.score
140
  }
141
  results.append(result_dict)
142