Skip to content

Commit

Permalink
upd: langchain 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisVLRT committed Jan 9, 2024
1 parent afadbbe commit a1bd023
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 18 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,5 @@ vector_database/
*.sqlite
*.sqlite3
vector_database/
.streamlit/
.streamlit/
.ruff_cache/
2 changes: 1 addition & 1 deletion backend/rag_components/chat_message_history.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os

from langchain.memory import ConversationBufferWindowMemory
from langchain.memory.chat_message_histories import SQLChatMessageHistory
from langchain_community.chat_message_histories import SQLChatMessageHistory

from backend.config import RagConfig

Expand Down
2 changes: 1 addition & 1 deletion backend/rag_components/embedding.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from langchain import embeddings
from langchain_community import embeddings

from backend.config import RagConfig

Expand Down
2 changes: 1 addition & 1 deletion backend/rag_components/llm.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import List

from langchain import chat_models
from langchain.callbacks.base import BaseCallbackHandler
from langchain_community import chat_models

from backend.config import RagConfig

Expand Down
2 changes: 1 addition & 1 deletion backend/rag_components/vector_store.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import inspect

from langchain import vectorstores
from langchain_community import vectorstores

from backend.config import RagConfig

Expand Down
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ streamlit
extra_streamlit_components
google-cloud-storage
openai==0.28.1
langchain==0.0.354
langchain==0.1.0
chromadb==0.4.14
tiktoken
gcsfs
Expand Down
24 changes: 12 additions & 12 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ anyio==4.2.0
# langchain-core
# starlette
# watchfiles
apify-client==1.6.1
apify-client==1.6.2
# via -r requirements.in
apify-shared==1.1.0
apify-shared==1.1.1
# via apify-client
attrs==23.2.0
# via
Expand Down Expand Up @@ -275,28 +275,28 @@ jsonschema==4.20.0
# nbformat
jsonschema-specifications==2023.12.1
# via jsonschema
jupyter-core==5.7.0
jupyter-core==5.7.1
# via nbformat
langchain==0.0.354
langchain==0.1.0
# via -r requirements.in
langchain-community==0.0.8
langchain-community==0.0.10
# via langchain
langchain-core==0.1.6
langchain-core==0.1.8
# via
# langchain
# langchain-community
langchainhub==0.1.14
# via -r requirements.in
langdetect==1.0.9
# via unstructured
langsmith==0.0.77
langsmith==0.0.78
# via
# langchain
# langchain-community
# langchain-core
loguru==0.7.2
# via trubrics
lxml==5.0.0
lxml==5.1.0
# via
# python-pptx
# unstructured
Expand Down Expand Up @@ -544,7 +544,7 @@ pyyaml-env-tag==0.1
# via mkdocs
rapidfuzz==3.6.1
# via unstructured
referencing==0.32.0
referencing==0.32.1
# via
# jsonschema
# jsonschema-specifications
Expand Down Expand Up @@ -635,7 +635,7 @@ sqlalchemy==2.0.25
# via
# langchain
# langchain-community
sqlglot==20.7.1
sqlglot==20.8.0
# via -r requirements.in
starlette==0.32.0.post1
# via fastapi
Expand Down Expand Up @@ -704,7 +704,7 @@ typer==0.9.0
# via
# chromadb
# trubrics
types-requests==2.31.0.20231231
types-requests==2.31.0.20240106
# via langchainhub
typing-extensions==4.9.0
# via
Expand Down Expand Up @@ -734,7 +734,7 @@ universal-pathlib==0.1.4
# via -r requirements.in
unstructured==0.11.8
# via -r requirements.in
unstructured-client==0.15.1
unstructured-client==0.15.2
# via unstructured
urllib3==2.0.7
# via
Expand Down

0 comments on commit a1bd023

Please sign in to comment.