Spaces:
Running
on
T4
Running
on
T4
Update utils/vectorstore_interface.py
Browse files
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(
|
133 |
# Process content to handle malformed nested list structures
|
134 |
processed_content = process_content(raw_content)
|
135 |
|
136 |
result_dict = {
|
137 |
-
|
138 |
-
|
139 |
-
|
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 |
|