Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
riyajatar37003 opened this issue Oct 3, 2024 · 5 comments
Open

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

riyajatar37003 opened this issue Oct 3, 2024 · 5 comments

Comments

@riyajatar37003
Copy link

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
Copy link
Contributor

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
Copy link
Author

riyajatar37003 commented Oct 3, 2024 via email

@riyajatar37003
Copy link
Author

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 pg_attribute 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
Copy link
Author

ValueError: KG provider neo4j not supported.

@riyajatar37003
Copy link
Author

"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\"}}",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants