Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -331,8 +331,18 @@ def rag_workflow(query):
|
|
331 |
|
332 |
|
333 |
kadi_apy_docs = retrieve_within_kadiApy_docs (vector_store, query, k = 5)
|
334 |
-
kadi_apy_library_docs = retrieve_within_kadiApy_library (vector_store, query, k = 10)
|
335 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
336 |
doc_context = format_kadi_api_doc_context(kadi_apy_docs)
|
337 |
|
338 |
code_context = format_kadi_apy_library_context(kadi_apy_library_docs)
|
|
|
331 |
|
332 |
|
333 |
kadi_apy_docs = retrieve_within_kadiApy_docs (vector_store, query, k = 5)
|
|
|
334 |
|
335 |
+
|
336 |
+
|
337 |
+
|
338 |
+
# Print each document's content and metadata
|
339 |
+
for doc in kadi_apy_docs:
|
340 |
+
print("Content:", doc.page_content)
|
341 |
+
print("Metadata:", doc.metadata)
|
342 |
+
print("-" * 20)
|
343 |
+
|
344 |
+
kadi_apy_library_docs = retrieve_within_kadiApy_library (vector_store, query, k = 10)
|
345 |
+
|
346 |
doc_context = format_kadi_api_doc_context(kadi_apy_docs)
|
347 |
|
348 |
code_context = format_kadi_apy_library_context(kadi_apy_library_docs)
|