Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -96,7 +96,8 @@ def rag_chatbot():
|
|
| 96 |
llm_model = load_llm(api_key=api[:-2])
|
| 97 |
|
| 98 |
# Create retriever using Chroma
|
| 99 |
-
|
|
|
|
| 100 |
|
| 101 |
# Ask a question
|
| 102 |
question = st.text_input("Ask a question about your dataset:")
|
|
|
|
| 96 |
llm_model = load_llm(api_key=api[:-2])
|
| 97 |
|
| 98 |
# Create retriever using Chroma
|
| 99 |
+
# FAISS.from_documents(documents, embedding)
|
| 100 |
+
retriever = FAISS.from_documents(documents, embedding=embedding_model).as_retriever()
|
| 101 |
|
| 102 |
# Ask a question
|
| 103 |
question = st.text_input("Ask a question about your dataset:")
|