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

Pg vector #802

Open
wants to merge 28 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add langchain_community.vectorstores
Mahmoudkhorshed-Queens committed May 18, 2024
commit 1680bb232b56d9918711bc820be766d6c6ffaf38
2 changes: 1 addition & 1 deletion localGPT_UI.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
import subprocess
import streamlit as st
from run_localGPT import load_model
from langchain.vectorstores import Chroma
from langchain_community.vectorstores import Chroma
from constants import CHROMA_SETTINGS, EMBEDDING_MODEL_NAME, PERSIST_DIRECTORY, MODEL_ID, MODEL_BASENAME
from langchain_community.embeddings import HuggingFaceInstructEmbeddings
from langchain.chains import RetrievalQA
2 changes: 1 addition & 1 deletion run_localGPT.py
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@
from utils import get_embeddings

# from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
from langchain.vectorstores import Chroma
from langchain_community.vectorstores import Chroma
from transformers import (
GenerationConfig,
pipeline,
2 changes: 1 addition & 1 deletion run_localGPT_API.py
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
from prompt_template_utils import get_prompt_template

# from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
from langchain.vectorstores import Chroma
from langchain_community.vectorstores import Chroma
from werkzeug.utils import secure_filename

from constants import CHROMA_SETTINGS, EMBEDDING_MODEL_NAME, PERSIST_DIRECTORY, MODEL_ID, MODEL_BASENAME