Open adrianruchti opened 4 months ago
Hi Adrian, the PD-retriever allows you to add documents, but is not compatible with the indexing API unfortunately.
Thank you. Nice solution anyway. hope to see more production fastapi rag implementations from your channel in the future.
Hello I am trying to insert the docs in the backend using the langchain index. Using your docstore I get:
024-05-20 19:13:24 2024-05-20 17:13:24,579 - INFO - Splitting documents... 2024-05-20 19:13:24 2024-05-20 17:13:24,579 - INFO - Inserting documents into PGVector Store. 2024-05-20 19:13:28 2024-05-20 17:13:28,630 - INFO - Store created successfully 2024-05-20 19:13:28 2024-05-20 17:13:28,630 - ERROR - An error occurred: Vectorstore vectorstore=<langchain_postgres.vectorstores.PGVector object at 0x7f65c6f96350> docstore=<src.db.postgres_parentchild.PostgresStore object at 0x7f65d4f9dc90> child_splitter=<langchain_text_splitters.character.RecursiveCharacterTextSplitter object at 0x7f65d4eea090> parent_splitter=<langchain_text_splitters.character.RecursiveCharacterTextSplitter object at 0x7f65c5116d50> does not have required method delete 2024-05-20 19:13:28 INFO: 172.18.0.8:56032 - "POST /rag/process_dropbox_local/postgres/testmatt HTTP/1.1" 500 Internal Server Error
` connection_string = f"{config('PGVECTOR_BASE_CONNECTION_STRING')}{selected_db}"