Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -54,16 +54,6 @@ login(HF_TOKEN)
|
|
54 |
api = HfApi()
|
55 |
|
56 |
|
57 |
-
|
58 |
-
|
59 |
-
# Setup Vectorstore
|
60 |
-
def embed_documents_into_vectorstore(chunks, model_name, persist_directory):
|
61 |
-
print("Start setup_vectorstore_function")
|
62 |
-
embedding_model = HuggingFaceEmbeddings(model_name=model_name)
|
63 |
-
vectorstore = get_chroma_vectorstore(embedding_model, persist_directory)
|
64 |
-
vectorstore.add_documents(chunks)
|
65 |
-
return vectorstore
|
66 |
-
|
67 |
def rag_workflow(query):
|
68 |
"""
|
69 |
RAGChain class to perform the complete RAG workflow.
|
|
|
54 |
api = HfApi()
|
55 |
|
56 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
def rag_workflow(query):
|
58 |
"""
|
59 |
RAGChain class to perform the complete RAG workflow.
|