-
Notifications
You must be signed in to change notification settings - Fork 102
Metadata json filtering #261
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
base: main
Are you sure you want to change the base?
Metadata json filtering #261
Conversation
…to default port used in tests
|
Can we add documentation related to this PR into https://github.com/langchain-ai/langchain-postgres/blob/main/examples/pg_vectorstore_how_to.ipynb ? |
@dishaprakash done |
| -e POSTGRES_PASSWORD=langchain \ | ||
| -e POSTGRES_DB=langchain_test \ | ||
| -p 6024:5432 pgvector/pgvector:pg16 \ | ||
| -p 5432:5432 pgvector/pgvector:pg16 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| -p 5432:5432 pgvector/pgvector:pg16 \ | |
| -p 6024:5432 pgvector/pgvector:pg16 \ |
| Document( | ||
| page_content=texts[i], | ||
| metadata=( | ||
| METADATAS[i] | {f"{key}_json": value for key, value in METADATAS[i].items()} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of adding more metadata to each doc, can we make a special test case to test this?
| bool: "BOOLEAN", | ||
| datetime.date: "DATE", | ||
| datetime.datetime: "TIMESTAMP", | ||
| datetime.time: "TIME", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may need to convert Python None to Null
Fixes #249