Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -141,7 +141,8 @@ vector_store = SupabaseVectorStore(
|
|
| 141 |
query_name="match_documents_langchain"
|
| 142 |
)
|
| 143 |
texts = [doc["content"] for doc in docs]
|
| 144 |
-
|
|
|
|
| 145 |
print("✅ Documents successfully embedded and stored.")
|
| 146 |
|
| 147 |
retriever_tool = create_retriever_tool(
|
|
|
|
| 141 |
query_name="match_documents_langchain"
|
| 142 |
)
|
| 143 |
texts = [doc["content"] for doc in docs]
|
| 144 |
+
vector_store.add_texts(texts)
|
| 145 |
+
|
| 146 |
print("✅ Documents successfully embedded and stored.")
|
| 147 |
|
| 148 |
retriever_tool = create_retriever_tool(
|