Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
Signed-off-by: Hemslo Wang <[email protected]>
  • Loading branch information
hemslo committed Jul 21, 2024
1 parent cd2ea5c commit 6afe1ba
Show file tree
Hide file tree
Showing 7 changed files with 840 additions and 627 deletions.
2 changes: 1 addition & 1 deletion app/chains/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from langchain.chains.combine_documents import create_stuff_documents_chain
from langchain.chains.history_aware_retriever import create_history_aware_retriever
from langchain.chains.retrieval import create_retrieval_chain
from langchain.prompts.prompt import PromptTemplate
from langchain_core.messages import (
AIMessage,
HumanMessage,
Expand All @@ -13,6 +12,7 @@
from langchain_core.prompts import (
ChatPromptTemplate,
MessagesPlaceholder,
PromptTemplate,
)
from langchain_core.runnables import Runnable, RunnableLambda, RunnableParallel
from pydantic import BaseModel
Expand Down
2 changes: 1 addition & 1 deletion app/chains/retriever.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
QUERY_CONSTRUCTOR_RUN_NAME,
SelfQueryRetriever,
)
from langchain.retrievers.self_query.redis import RedisTranslator
from langchain_community.query_constructors.redis import RedisTranslator
from langchain_core.documents import Document
from langchain_core.retrievers import RetrieverLike
from langchain_core.runnables import (
Expand Down
2 changes: 1 addition & 1 deletion app/client/crawl.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RecursiveUrlLoader,
SitemapLoader,
)
from langchain_community.document_loaders.base import BaseLoader
from langchain_core.document_loaders import BaseLoader
from tqdm.asyncio import tqdm_asyncio

from app.models.base_document import BaseDocumentMetadata
Expand Down
4 changes: 2 additions & 2 deletions app/dependencies/document_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
from typing import Annotated, Any

from fastapi import Depends
from langchain.text_splitter import (
from langchain_core.documents import BaseDocumentTransformer, Document
from langchain_text_splitters import (
HTMLHeaderTextSplitter,
RecursiveCharacterTextSplitter,
TextSplitter,
)
from langchain_core.documents import BaseDocumentTransformer, Document

from app import config

Expand Down
2 changes: 1 addition & 1 deletion app/models/raw_document_request.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Literal

from pydantic.fields import Field
from pydantic import Field

from app.models.base_document import BaseDocument
from app.models.document_metadata_model import DocumentMetadataModel
Expand Down
1,398 changes: 805 additions & 593 deletions poetry.lock

Large diffs are not rendered by default.

57 changes: 29 additions & 28 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,43 +10,44 @@ packages = [

[tool.poetry.dependencies]
beautifulsoup4 = "^4.12.3"
huggingface-hub = "^0.23.0"
langchain = "^0.1.20"
langchain-community = "^0.0.38"
langchain-openai = "^0.1.3"
langserve = { extras = ["server"], version = "^0.1.1" }
huggingface-hub = "^0.24.0"
langchain = "^0.2.10"
langchain-community = "^0.2.9"
langchain-openai = "^0.1.17"
langserve = { extras = ["server"], version = "^0.2.2" }
lark = "^1.1.9"
lxml = "^5.2.2"
opentelemetry-distro = { extras = ["oltp"], version = "^0.45b0" }
opentelemetry-exporter-otlp = "^1.24.0"
opentelemetry-instrumentation = "^0.45b0"
opentelemetry-instrumentation-aiohttp-client = "0.45b0"
opentelemetry-instrumentation-asgi = "0.45b0"
opentelemetry-instrumentation-aws-lambda = "^0.45b0"
opentelemetry-instrumentation-dbapi = "^0.45b0"
opentelemetry-instrumentation-fastapi = "0.45b0"
opentelemetry-instrumentation-grpc = "^0.45b0"
opentelemetry-instrumentation-httpx = "0.45b0"
opentelemetry-instrumentation-logging = "0.45b0"
opentelemetry-instrumentation-redis = "0.45b0"
opentelemetry-instrumentation-requests = "0.45b0"
opentelemetry-instrumentation-sqlalchemy = "0.45b0"
opentelemetry-instrumentation-sqlite3 = "0.45b0"
opentelemetry-instrumentation-tortoiseorm = "0.45b0"
opentelemetry-instrumentation-urllib = "0.45b0"
opentelemetry-instrumentation-urllib3 = "0.45b0"
opentelemetry-instrumentation-wsgi = "^0.45b0"
opentelemetry-distro = { extras = ["oltp"], version = "^0.46b0" }
opentelemetry-exporter-otlp = "^1.25.0"
opentelemetry-instrumentation = "^0.46b0"
opentelemetry-instrumentation-aiohttp-client = "0.46b0"
opentelemetry-instrumentation-asgi = "0.46b0"
opentelemetry-instrumentation-aws-lambda = "0.46b0"
opentelemetry-instrumentation-dbapi = "0.46b0"
opentelemetry-instrumentation-fastapi = "0.46b0"
opentelemetry-instrumentation-grpc = "0.46b0"
opentelemetry-instrumentation-httpx = "0.46b0"
opentelemetry-instrumentation-logging = "0.46b0"
opentelemetry-instrumentation-redis = "0.46b0"
opentelemetry-instrumentation-requests = "0.46b0"
opentelemetry-instrumentation-sqlalchemy = "0.46b0"
opentelemetry-instrumentation-sqlite3 = "0.46b0"
opentelemetry-instrumentation-threading= "0.46b0"
opentelemetry-instrumentation-tortoiseorm = "0.46b0"
opentelemetry-instrumentation-urllib = "0.46b0"
opentelemetry-instrumentation-urllib3 = "0.46b0"
opentelemetry-instrumentation-wsgi = "0.46b0"
pydantic = "<2"
pyroscope-io = "^0.8.7"
python = "^3.11"
python = "^3.11, <3.12.4"
python-dotenv = "^1.0.0"
redis = "^5.0.4"
redis = "^5.0.7"
tqdm = "^4.66.4"
uvicorn = "^0.23.2"

[tool.poetry.group.dev.dependencies]
langchain-cli = "^0.0.22"
ruff = "^0.4.4"
langchain-cli = "^0.0.25"
ruff = "^0.5.4"
redisvl = "^0.0.7"

[tool.poetry.scripts]
Expand Down

0 comments on commit 6afe1ba

Please sign in to comment.