-
Notifications
You must be signed in to change notification settings - Fork 16.6k
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
couchbase: Add the initial version of Couchbase partner package #22087
couchbase: Add the initial version of Couchbase partner package #22087
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
2 things (sorry if duplicate - github UI glitched out when submitting at first)
- all
from couchbase.* import
lines should be at the top of the file because it's a required dep! - all default implementations of functions (that can be gotten from
VectorStore
superclass) should be deleted
Set to True by default. | ||
""" | ||
try: | ||
from couchbase.cluster import Cluster |
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.
convert to top-of-file import since it's a required dep of package
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.
Have fixed it in 50e4a89
import couchbase.search as search | ||
from couchbase.options import SearchOptions | ||
from couchbase.vector_search import VectorQuery, VectorSearch |
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.
also top of file
) | ||
return [doc for doc, _ in docs_with_scores] | ||
|
||
async def asimilarity_search( |
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.
delete all default implementations that can be gotten from superclass
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.
Have fixed it in 4d4ade5
Co-authored-by: Nithish Raghunandanan <[email protected]> Co-authored-by: Erick Friis <[email protected]>
No description provided.