Spaces:
Sleeping
Sleeping
UPDATE: citations
Browse files- functions.py +1 -1
functions.py
CHANGED
@@ -168,7 +168,7 @@ def addDocuments(text: str, source: str, vectorstore: str):
|
|
168 |
def format_docs(docs: str):
|
169 |
context = ""
|
170 |
for doc in docs:
|
171 |
-
context += f"CONTENT: {doc.page_content}\nSOURCE: {doc.metadata
|
172 |
if context == "":
|
173 |
context = "No context found"
|
174 |
else: pass
|
|
|
168 |
def format_docs(docs: str):
|
169 |
context = ""
|
170 |
for doc in docs:
|
171 |
+
context += f"CONTENT: {doc.page_content}\nSOURCE: {doc.metadata} \n\n\n"
|
172 |
if context == "":
|
173 |
context = "No context found"
|
174 |
else: pass
|