| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
nit: the doc comments need updating. Missing the schema parameter.
Sorry, something went wrong.
| | 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, |
There was a problem hiding this comment.
Why not adding it to the table above with a column marking it as optional?
Sorry, something went wrong.
There was a problem hiding this comment.
I want to keep this part as simple as possible
Sorry, something went wrong.
| """ | ||
| 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) |
There was a problem hiding this comment.
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.
Sorry, something went wrong.
There was a problem hiding this comment.
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
Sorry, something went wrong.
| time_partition_interval: Optional[timedelta] = None, | ||
| max_db_connections: Optional[int] = None, | ||
| infer_filters: bool = True, | ||
| schema_name: Optional[str] = None, |
There was a problem hiding this comment.
Need to add this to the constructor docs
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
No description provided.