You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But I need to use original query and not the translated query while retrieval .
I believe the the official code base for retriever (here) provides this functionality using a boolean parameter use_original_query
This was working until 3-4 months ago. But now I can not see it using the original query.
Using PGVectorTranslator and PGVector store for this implementation. I found three different implementations of PGVectorTranslator() as below which is confusing.
from langchain_postgres.translator import PGVectorTranslator
from langchain_community.query_constructors.pgvector import PGVectorTranslator
from langchain_postgres import PGVectorTranslator
But I need to use original query and not the translated query while retrieval .This was working until 3-4 months ago. But now I can not see it using the original query.
-Using PGVectorTranslator and PGVector store for this implementation.
System Info
System Information
OS: Linux
OS Version: #84~20.04.1-Ubuntu SMP Mon Nov 4 18:58:41 UTC 2024
Python Version: 3.12.3 (main, Nov 6 2024, 18:32:19) [GCC 13.2.0]
aiohttp: 3.9.5
async-timeout: Installed. No version info available.
dataclasses-json: 0.6.7
httpx: 0.27.2
httpx-sse: 0.4.0
jsonpatch<2.0,>=1.33: Installed. No version info available.
langchain-core<1.0.0,>=0.3.34: Installed. No version info available.
langsmith<0.4,>=0.1.125: Installed. No version info available.
numpy: 1.26.4
openai: 1.61.1
orjson: 3.10.11
packaging<25,>=23.2: Installed. No version info available.
pgvector: 0.2.5
psycopg: 3.2.4
psycopg-pool: 3.2.4
pydantic: 2.8.2
pydantic-settings: 2.7.1
pydantic<3.0.0,>=2.5.2;: Installed. No version info available.
pydantic<3.0.0,>=2.7.4;: Installed. No version info available.
PyYAML: 6.0.1
PyYAML>=5.3: Installed. No version info available.
requests: 2.32.2
requests-toolbelt: 1.0.0
SQLAlchemy: 2.0.30
sqlalchemy: 2.0.30
tenacity: 8.2.2
tenacity!=8.4.0,<10.0.0,>=8.1.0: Installed. No version info available.
tiktoken: 0.7.0
typing-extensions>=4.7: Installed. No version info available.
The text was updated successfully, but these errors were encountered:
Checked other resources
Example Code
While using Self Query in my code, I am facing following issue.
Output:
StructuredQuery(query='taxi driver', filter=Operation(operator=<Operator.AND: 'and'>, arguments=[Comparison(comparator=<Comparator.EQ: 'eq'>, attribute='genre', value='science fiction'), Operation(operator=<Operator.AND: 'and'>, arguments=[Comparison(comparator=<Comparator.GTE: 'gte'>, attribute='year', value=1990), Comparison(comparator=<Comparator.LT: 'lt'>, attribute='year', value=2000)]), Comparison(comparator=<Comparator.EQ: 'eq'>, attribute='director', value='Luc Besson')]), limit=None)
`
But I need to use original query and not the translated query while retrieval .
I believe the the official code base for retriever (here) provides this functionality using a boolean parameter
use_original_query
This was working until 3-4 months ago. But now I can not see it using the original query.
Using PGVectorTranslator and PGVector store for this implementation. I found three different implementations of PGVectorTranslator() as below which is confusing.
Error Message and Stack Trace (if applicable)
No response
Description
-Using PGVectorTranslator and PGVector store for this implementation.
System Info
System Information
Package Information
Optional packages not installed
Other Dependencies
The text was updated successfully, but these errors were encountered: