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

Script to create the vector database #36

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jjiang85
Copy link

@jjiang85 jjiang85 commented Jun 1, 2024

This is a PR for #8 with a script that (theoretically) creates a Chroma vector database using LangChain and HuggingFace embeddings. It's not yet complete (and maybe will never be) but the idea is that the script will:

  1. Read in data from the terms to cui and cui to definitions dictionaries and put them into LangChain Documents
  2. Create embeddings of those definitions
  3. Store those embeddings in a Chroma vector db (possibly to disk for later load) for later retrieval
    It's not complete and runs into issues when attempting to run on Windows. I've tested each piece of the code in Colab and it seems to work, there's just some local environment issues.

Python version >= 3.11 is required for langchain and its associated libraries
You'll want to run pip --upgrade langchain langchain_chroma langchain_community langchain_core sentence_transformers before running the script

@jonjiang1 jonjiang1 self-assigned this Jun 1, 2024
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.

2 participants