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

vectorstores: add Milvus #352

Merged
merged 7 commits into from
Nov 30, 2023
Merged

vectorstores: add Milvus #352

merged 7 commits into from
Nov 30, 2023

Conversation

pattonjp
Copy link
Contributor

@pattonjp pattonjp commented Nov 10, 2023

In quest to run langchaingo locally without network dependencies. I've added the milvus vector store and huggingface's text-embeddings-inference api client.

PR Checklist

  • Read the Contributing documentation.
  • Read the Code of conduct documentation.
  • Name your Pull Request title clearly, concisely, and prefixed with the name of the primarily affected package you changed according to Good commit messages (such as memory: add interfaces for X, Y or util: add whizzbang helpers).
  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. Fixes #123).
  • Describes the source of new concepts.
  • References existing implementations as appropriate.
  • Contains test coverage for new functions.
  • Passes all golangci-lint checks.

fixes #59

@pattonjp pattonjp closed this Nov 10, 2023
@tmc
Copy link
Owner

tmc commented Nov 12, 2023

@pattonjp why close this?

@pattonjp
Copy link
Contributor Author

pattonjp commented Nov 13, 2023

@tmc created in this repo accidentally. will reopen as draft while testing.

@pattonjp pattonjp reopened this Nov 13, 2023
@pattonjp pattonjp marked this pull request as draft November 13, 2023 16:13
@pattonjp pattonjp changed the title Milvus vectorstores: add Milvus Nov 13, 2023
@pattonjp pattonjp marked this pull request as ready for review November 17, 2023 17:56
@wangzhuzhen
Copy link

@pattonjp @tmc How about this vectorstores Milvus?we need this 😄

@tmc
Copy link
Owner

tmc commented Nov 26, 2023

Thanks for this contribution! We're in the process of coming up with a pattern to expand support while keeping the direct dependent library list small/minimal.

Copy link
Owner

@tmc tmc left a comment

Choose a reason for hiding this comment

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

Discussion happening on #369 but I don't want to hold this up. LGTM

@tmc tmc merged commit b52d04e into tmc:main Nov 30, 2023
3 checks passed
@tmc
Copy link
Owner

tmc commented Nov 30, 2023

@pattonjp can the text-embeddings-router go into the docker-compose config?

@tmc
Copy link
Owner

tmc commented Nov 30, 2023

@pattonjp why not use ollama for embeddings? edit: I filed an issue to make another example.

Thoughts on getting langchaingo linked in the https://github.com/milvus-io/milvus readme?

@pattonjp
Copy link
Contributor Author

@pattonjp can the text-embeddings-router go into the docker-compose config?

sure, i can see that would make a simpler example. i'll submit a new pr. originally i had it running in compose with the cpu but found it to be too slow and adding all possible gpu configurations did not seem worth the complexity.

@pattonjp
Copy link
Contributor Author

pattonjp commented Nov 30, 2023

@pattonjp why not use ollama for embeddings? edit: I filed an issue to make another example.

Thoughts on getting langchaingo linked in the https://github.com/milvus-io/milvus readme?

@tmc
the example started as a rag example, scaled it back but looks like i could have cleaned up more (i see you did that already... thanks)

as for getting on the milvus readme, i'd say go for it.

@pattonjp pattonjp mentioned this pull request Nov 30, 2023
9 tasks
@eliben
Copy link
Collaborator

eliben commented Dec 1, 2023

Hi @pattonjp you've added embeddings/tei here; can you PTAL at #379 and #374 ? We're refactoring everything in embeddings to remove code duplication and use some common interfaces and APIs.

Do you think you could refactor embeddings/tei to do the same, perhaps leaving only things specific to this provider, if needed? Happy to review!

@eliben
Copy link
Collaborator

eliben commented Dec 1, 2023

Specifically, the tei provider has some additional options - but could these be passed to the underlying client directly, instead of to the embedder? The embedder then just wraps any client

@eliben eliben mentioned this pull request Dec 1, 2023
@pattonjp
Copy link
Contributor Author

pattonjp commented Dec 4, 2023

@eliben sure will have pr today

tmc pushed a commit that referenced this pull request Dec 5, 2023
* adding milvus vector store

* adding hugging face text embedings

* adding milvus vector store example
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.

integrate with milvus for vector-store
4 participants