Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -208,7 +208,7 @@ initialize_chroma()
|
|
| 208 |
def query_rag(query_text: str):
|
| 209 |
embedding_function = get_embedding_function()
|
| 210 |
db = Chroma(persist_directory=CHROMA_PATH, embedding_function=embedding_function)
|
| 211 |
-
|
| 212 |
# Check if the query is related to a PDF
|
| 213 |
if "from pdf" in query_text.lower() or "in pdf" in query_text.lower():
|
| 214 |
# Provide some context about handling PDFs
|
|
|
|
| 208 |
def query_rag(query_text: str):
|
| 209 |
embedding_function = get_embedding_function()
|
| 210 |
db = Chroma(persist_directory=CHROMA_PATH, embedding_function=embedding_function)
|
| 211 |
+
print(query_text)
|
| 212 |
# Check if the query is related to a PDF
|
| 213 |
if "from pdf" in query_text.lower() or "in pdf" in query_text.lower():
|
| 214 |
# Provide some context about handling PDFs
|