Spaces:
Runtime error
Runtime error
v0.1.5
Browse files- src/indexer.py +1 -1
- src/main.py +1 -1
src/indexer.py
CHANGED
|
@@ -118,4 +118,4 @@ def addText(inStr:str,metadata):
|
|
| 118 |
|
| 119 |
docs = [
|
| 120 |
Document(page_content=inStr, metadata=md)]
|
| 121 |
-
return vectorstore.add_documents(docs)
|
|
|
|
| 118 |
|
| 119 |
docs = [
|
| 120 |
Document(page_content=inStr, metadata=md)]
|
| 121 |
+
return vectorstore.add_documents(docs,ids=[docs[0]["ID"]])
|
src/main.py
CHANGED
|
@@ -27,7 +27,7 @@ async def catch_exceptions_middleware(
|
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
-
app = fastapi.FastAPI(title="Maya
|
| 31 |
app.middleware("http")(catch_exceptions_middleware)
|
| 32 |
app.add_middleware(
|
| 33 |
CORSMiddleware,
|
|
|
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
+
app = fastapi.FastAPI(title="Maya Persistence")
|
| 31 |
app.middleware("http")(catch_exceptions_middleware)
|
| 32 |
app.add_middleware(
|
| 33 |
CORSMiddleware,
|