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

Issue 159 update requiremnts to specify working versions #160

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions chains.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from langchain_openai import OpenAIEmbeddings
from langchain_community.embeddings import OllamaEmbeddings
from langchain_community.embeddings import BedrockEmbeddings
from langchain_community.embeddings.sentence_transformer import SentenceTransformerEmbeddings
from langchain_community.embeddings.huggingface import HuggingFaceEmbeddings

Choose a reason for hiding this comment

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

Suggested change
from langchain_community.embeddings.huggingface import HuggingFaceEmbeddings
from langchain_community.embeddings.sentence_transformer import SentenceTransformerEmbeddings


from langchain_openai import ChatOpenAI
from langchain_community.chat_models import ChatOllama
Expand Down Expand Up @@ -48,7 +48,7 @@ def load_embedding_model(embedding_model_name: str, logger=BaseLogger(), config=
dimension = 768
logger.info("Embedding: Using Google Generative AI Embeddings")
else:
embeddings = SentenceTransformerEmbeddings(
embeddings = HuggingFaceEmbeddings(

Choose a reason for hiding this comment

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

Suggested change
embeddings = HuggingFaceEmbeddings(
embeddings = SentenceTransformerEmbeddings(

model_name="all-MiniLM-L6-v2", cache_folder="/embedding_model"
)
dimension = 384
Expand Down
7 changes: 5 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ wikipedia
tiktoken
neo4j
streamlit
sentence_transformers==2.2.2
sentence_transformers==2.6.0

Choose a reason for hiding this comment

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

Suggested change
sentence_transformers==2.6.0
sentence_transformers

Pillow
fastapi
PyPDF2
Expand All @@ -14,6 +14,9 @@ uvicorn
sse-starlette
boto3
# missing from the langchain base image?
langchain-huggingface==0.0.2
langchain-core==0.2.1
Comment on lines +17 to +18

Choose a reason for hiding this comment

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

Suggested change
langchain-huggingface==0.0.2
langchain-core==0.2.1

langchain-openai
langchain-community
langchain-community==0.2.1

Choose a reason for hiding this comment

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

Suggested change
langchain-community==0.2.1
langchain-community

langchain-google-genai
# Do more of these versions need to be fixed?

Choose a reason for hiding this comment

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

Suggested change
# Do more of these versions need to be fixed?