SciPhi-AI / R2R

Containerized, state of the art Retrieval-Augmented Generation (RAG) system with a RESTful API
https://r2r-docs.sciphi.ai/
MIT License
3.69k stars 278 forks source link

don't know from where the Retrieve documents are coming #1323

Open riyajatar37003 opened 1 month ago

riyajatar37003 commented 1 month ago

Hi, I have indexed 4 documents and query it over that index. but one weird thing happening , i am getting the completely new documents in top retrieval results. I tried with r2r docker-down and even removing all images and container but still getting those new documents which never indexed. from those documents are coming ? any idea ?

emrgnt-cmplxty commented 1 month ago

Hi @riyajatar37003 ,

Was the database empty when you ingested these documents?

One thing you might try is to change the R2R_PROJECT_NAME to ensure a fresh starting point.

riyajatar37003 commented 1 month ago

How and where that need to specify

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: emrgnt-cmplxty @.> Sent: Thursday, October 3, 2024 7:53:35 PM To: SciPhi-AI/R2R @.> Cc: Riyaj Atar @.>; Mention @.> Subject: Re: [SciPhi-AI/R2R] don't know from where the Retrieve documents are coming (Issue #1323)

[External Email]


Hi @riyajatar37003https://github.com/riyajatar37003 ,

Was the database empty when you ingested these documents?

One thing you might try is to change the R2R_PROJECT_NAME to ensure a fresh starting point.

— Reply to this email directly, view it on GitHubhttps://github.com/SciPhi-AI/R2R/issues/1323#issuecomment-2391555417, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BIJR5XQ7M5AJTRZBB5Z4TYLZZVHOPAVCNFSM6AAAAABPJ4TXWSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJRGU2TKNBRG4. You are receiving this because you were mentioned.Message ID: @.***>

riyajatar37003 commented 1 month ago

i exported it as env variable

b22 File "/usr/local/lib/python3.10/site-packages/sqlalchemy/orm/session.py", line 2256, in _execute_internal 2024-10-04 11:38:22 result = conn.execute( 2024-10-04 11:38:22 File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1418, in execute 2024-10-04 11:38:22 return meth( 2024-10-04 11:38:22 File "/usr/local/lib/python3.10/site-packages/sqlalchemy/sql/elements.py", line 515, in _execute_on_connection 2024-10-04 11:38:22 return connection._execute_clauseelement( 2024-10-04 11:38:22 File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1640, in _execute_clauseelement 2024-10-04 11:38:22 ret = self._execute_context( 2024-10-04 11:38:22 File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1846, in _execute_context 2024-10-04 11:38:22 return self._exec_single_context( 2024-10-04 11:38:22 File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1986, in _exec_single_context 2024-10-04 11:38:22 self._handle_dbapi_exception( 2024-10-04 11:38:22 File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 2355, in _handle_dbapi_exception 2024-10-04 11:38:22 raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 2024-10-04 11:38:22 File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context 2024-10-04 11:38:22 self.dialect.do_execute( 2024-10-04 11:38:22 File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 941, in do_execute 2024-10-04 11:38:22 cursor.execute(statement, parameters) 2024-10-04 11:38:22 sqlalchemy.exc.ProgrammingError: (psycopg2.errors.InvalidName) invalid name syntax 2024-10-04 11:38:22 LINE 10: pc.relnamespace = 'my project'::regnamespace 2024-10-04 11:38:22 ^ 2024-10-04 11:38:22 2024-10-04 11:38:22 [SQL: 2024-10-04 11:38:22 select 2024-10-04 11:38:22 relname as table_name, 2024-10-04 11:38:22 atttypmod as embedding_dim 2024-10-04 11:38:22 from 2024-10-04 11:38:22 pg_class pc 2024-10-04 11:38:22 join pgattribute pa 2024-10-04 11:38:22 on pc.oid = pa.attrelid 2024-10-04 11:38:22 where 2024-10-04 11:38:22 pc.relnamespace = 'my project'::regnamespace 2024-10-04 11:38:22 and pc.relkind = 'r' 2024-10-04 11:38:22 and pa.attname = 'vec' 2024-10-04 11:38:22 and not pc.relname ^@ '' 2024-10-04 11:38:22 and pc.relname = %(name)s 2024-10-04 11:38:22 ] 2024-10-04 11:38:22 [parameters: {'name': 'my project'}] 2024-10-04 11:38:22 (Background on this error at: https://sqlalche.me/e/20/f405) 2024-10-04 11:38:22 2024-10-04 11:38:22 ERROR: Application startup failed. Exiting.

riyajatar37003 commented 1 month ago

ValueError: KG provider neo4j not supported.

riyajatar37003 commented 1 month ago
"name": "R2RException",
"message": "{\"detail\":{\"message\":\"An error ''dict' object has no attribute 'model_dump'' occurred during ingest_files_app\",\"error\":\"'dict' object has no attribute 'model_dump'\",\"error_type\":\"AttributeError\"}}",