FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add option to specify the schema for the table by cevian · Pull Request #26 · timescale/python-vector · GitHub

Add option to specify the schema for the table - #26

Merged
cevian merged 1 commit into
mainfrom
schema_option
Aug 22, 2024
Merged

Add option to specify the schema for the table#26
cevian merged 1 commit into
mainfrom
schema_option

Conversation

cevian commented Aug 19, 2024

Copy link
Copy Markdown
Collaborator

No description provided.

jgpruitt self-requested a review August 19, 2024 21:23

jgpruitt left a comment

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

nit: the doc comments need updating. Missing the schema parameter.

Comment thread README.md
| table_name | Name of the table to use for storing the embeddings. Think of this as the collection name |
| num_dimensions | Number of dimensions in the vector |

You can also specify the schema name, distance type, primary key type,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Why not adding it to the table above with a column marking it as optional?

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I want to keep this part as simple as possible

"""
self.builder = QueryBuilder(
table_name, num_dimensions, distance_type, id_type, time_partition_interval, infer_filters)
table_name, num_dimensions, distance_type, id_type, time_partition_interval, infer_filters, schema_name)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Need to add schema_name to the docs. Would it make it easier if instead of None we default to "public"? That way we don't have to do the if self.schema_name is not None checks.

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

None and public are not the same since public is not always the default schema. None means use the default schema defined by the db

time_partition_interval: Optional[timedelta] = None,
max_db_connections: Optional[int] = None,
infer_filters: bool = True,
schema_name: Optional[str] = None,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Need to add this to the constructor docs

cevian merged commit c6c74c4 into main Aug 22, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

3 participants


Back | FazBrowse Home | New Git URL