Skip to content
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

Merged
merged 18 commits into from
Jun 7, 2024

Conversation

nithishr
Copy link
Contributor

@nithishr nithishr commented May 23, 2024

No description provided.

@efriis efriis added the partner label May 23, 2024
@efriis efriis self-assigned this May 23, 2024
@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label May 23, 2024
Copy link

vercel bot commented May 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchain ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 7, 2024 0:40am

@dosubot dosubot bot added Ɑ: vector store Related to vector store module 🤖:enhancement A large net-new component, integration, or chain. Use sparingly. The largest features labels May 23, 2024
Copy link
Contributor

@efriis efriis left a 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)

  1. all from couchbase.* import lines should be at the top of the file because it's a required dep!
  2. 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
Copy link
Contributor

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

Copy link
Contributor Author

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

Comment on lines 435 to 437
import couchbase.search as search
from couchbase.options import SearchOptions
from couchbase.vector_search import VectorQuery, VectorSearch
Copy link
Contributor

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(
Copy link
Contributor

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

Copy link
Contributor Author

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

@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Jun 7, 2024
@efriis efriis changed the title partner: Add the initial version of Couchbase partner package couchbase: Add the initial version of Couchbase partner package Jun 7, 2024
@efriis efriis merged commit f2f0e0e into langchain-ai:master Jun 7, 2024
58 checks passed
hinthornw pushed a commit that referenced this pull request Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:enhancement A large net-new component, integration, or chain. Use sparingly. The largest features lgtm PR looks good. Use to confirm that a PR is ready for merging. partner size:XXL This PR changes 1000+ lines, ignoring generated files. Ɑ: vector store Related to vector store module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants