-
Notifications
You must be signed in to change notification settings - Fork 394
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
Expose creating and querying index for a ReDap collection in python SDK #8890
Conversation
Web viewer built successfully. If applicable, you should also test it:
Note: This comment is updated whenever you push a commit. |
examples/python/remote/metadata.py
Outdated
@@ -68,3 +72,8 @@ | |||
schema = conn.get_recording_schema(id) | |||
for column in schema: | |||
print(column) | |||
elif args.subcommand == "create-index": |
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.
elif args.subcommand == "create-index": | |
elif args.subcommand == "create-vector-index": |
examples/python/remote/metadata.py
Outdated
@@ -68,3 +72,8 @@ | |||
schema = conn.get_recording_schema(id) | |||
for column in schema: | |||
print(column) | |||
elif args.subcommand == "create-index": | |||
column = rr.dataframe.ComponentColumnSelector(args.entity_path, args.index_column) | |||
index = rr.dataframe.IndexColumnSelector("log_tick") |
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.
Might as well make this and the collection name configurable as well.
column, | ||
top_k, | ||
))] | ||
fn query_vector_index( |
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.
I'm realizing here and elsewhere that query
isn't really the right term. Propose we swap this with "search":
https://github.com/rerun-io/dataplatform/issues/185
What
Basic plumbing that enables creating and querying vector and FTS index. Joint effort from @jleibs and me.
Testing done
Ran the latest
Indexing
notebook successfully.