Spaces:
Sleeping
Sleeping
DEBUG: collection name
Browse files- functions.py +2 -2
functions.py
CHANGED
@@ -158,7 +158,7 @@ def answerQuery(query: str, vectorstore: str, llmModel: str = "llama3-70b-8192")
|
|
158 |
retriever = ParentDocumentRetriever(
|
159 |
vectorstore=vectorstore,
|
160 |
docstore=store,
|
161 |
-
child_splitter=RecursiveCharacterTextSplitter()
|
162 |
)
|
163 |
chain = (
|
164 |
{"context": retriever | RunnableLambda(format_docs), "question": RunnablePassthrough()}
|
@@ -188,7 +188,7 @@ def listTables(username: str):
|
|
188 |
global qdrantClient
|
189 |
qdrantCollections = qdrantClient.get_collections()
|
190 |
return {
|
191 |
-
"output": list(filter(lambda x: True if x.split("-")[1] == username else False, [x.name
|
192 |
}
|
193 |
except Exception as e:
|
194 |
return {
|
|
|
158 |
retriever = ParentDocumentRetriever(
|
159 |
vectorstore=vectorstore,
|
160 |
docstore=store,
|
161 |
+
child_splitter=RecursiveCharacterTextSplitter(),
|
162 |
)
|
163 |
chain = (
|
164 |
{"context": retriever | RunnableLambda(format_docs), "question": RunnablePassthrough()}
|
|
|
188 |
global qdrantClient
|
189 |
qdrantCollections = qdrantClient.get_collections()
|
190 |
return {
|
191 |
+
"output": list(filter(lambda x: True if x.split("-")[1] == username else False, [x.name for x in qdrantCollections.collections]))
|
192 |
}
|
193 |
except Exception as e:
|
194 |
return {
|