Skip to content

PG vector support#3

Open
fhuzjan wants to merge 8 commits intomainfrom
43459-pg-vector-support
Open

PG vector support#3
fhuzjan wants to merge 8 commits intomainfrom
43459-pg-vector-support

Conversation

@fhuzjan
Copy link
Copy Markdown
Collaborator

@fhuzjan fhuzjan commented Jul 17, 2025

No description provided.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How did you know which tables to create?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are listed in the models.py file.

Comment thread openmemory/api/app/utils/memory.py Outdated
Comment thread openmemory/api/app/models.py Outdated
Comment thread openmemory/api/main.py Outdated
Comment thread openmemory/api/app/models.py Outdated
Comment on lines +173 to +174
memory_id = Column(UUID, ForeignKey(f"{SCHEMA_NAME}.memories.id"), nullable=False, index=True)
changed_by = Column(UUID, ForeignKey(f"{SCHEMA_NAME}.users.id"), nullable=False, index=True)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you need to do this if you have the proper setup in env.py - you can just have "memories.id", for example

@maticdorian
Copy link
Copy Markdown
Collaborator

Should we use pydantic-settings for this project as well, to handle loading env variables?

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

Successfully merging this pull request may close these issues.

2 participants