-
Notifications
You must be signed in to change notification settings - Fork 750
Python version, langchain libraries and document upgrade #1410
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
base: dev
Are you sure you want to change the base?
Changes from 5 commits
f9c0ef9
5568db5
c6f34a6
5419022
15dc73f
6d0c984
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| FROM python:3.10-slim | ||
| FROM python:3.12-slim | ||
| WORKDIR /code | ||
| ENV PORT 8000 | ||
| EXPOSE 8000 | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,6 +1,11 @@ | ||||||
| # Project Overview | ||||||
| Welcome to our project! This project is built using FastAPI framework to create a fast and modern API with Python. | ||||||
|
|
||||||
| ## Prerequisites | ||||||
|
|
||||||
| - Python 3.12 or higher | ||||||
| - pip (Python package manager) | ||||||
|
|
||||||
| ## Feature | ||||||
| API Endpoint : This project provides various API endpoint to perform specific tasks. | ||||||
| Data Validation : Utilize FastAPI data validation and serialization feature. | ||||||
|
|
@@ -16,9 +21,14 @@ Follow these steps to set up and run the project locally: | |||||
|
|
||||||
| > cd llm-graph-builder | ||||||
|
|
||||||
| 2. Install Dependency : | ||||||
| 2. Create a virtual environment (recommended): | ||||||
|
|
||||||
| > python3.12 -m venv venv | ||||||
| > source venv/bin/activate # On Windows: venv\Scripts\activate | ||||||
|
|
||||||
| 3. Install Dependency : | ||||||
|
|
||||||
| > pip install -t requirements.txt | ||||||
| > pip install -r requirements.txt -c constraints.txt | ||||||
|
||||||
| > pip install -r requirements.txt -c constraints.txt | |
| > pip install -r requirements.txt |
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -1,65 +1,65 @@ | ||||||||
| accelerate==1.7.0 | ||||||||
| asyncio==3.4.3 | ||||||||
| boto3==1.38.36 | ||||||||
| botocore==1.38.36 | ||||||||
| certifi==2025.6.15 | ||||||||
| fastapi==0.115.12 | ||||||||
| accelerate==1.12.0 | ||||||||
| asyncio==4.0.0 | ||||||||
| boto3==1.40.23 | ||||||||
| botocore==1.40.23 | ||||||||
| certifi==2025.8.3 | ||||||||
| fastapi==0.116.1 | ||||||||
| fastapi-health==0.4.0 | ||||||||
| fireworks-ai==0.15.12 | ||||||||
| google-api-core==2.25.1 | ||||||||
| google-auth==2.40.3 | ||||||||
| google_auth_oauthlib==1.2.2 | ||||||||
| google-cloud-core==2.4.3 | ||||||||
| json-repair==0.39.1 | ||||||||
| json-repair==0.44.1 | ||||||||
| pip-install==1.3.5 | ||||||||
| langchain==0.3.25 | ||||||||
| langchain-aws==0.2.25 | ||||||||
| langchain-anthropic==0.3.15 | ||||||||
| langchain-fireworks==0.3.0 | ||||||||
| langchain-community==0.3.25 | ||||||||
| langchain-core==0.3.65 | ||||||||
| langchain-experimental==0.3.4 | ||||||||
| langchain-google-vertexai==2.0.25 | ||||||||
| langchain-groq==0.3.2 | ||||||||
| langchain-openai==0.3.23 | ||||||||
| langchain-text-splitters==0.3.8 | ||||||||
| langchain-huggingface==0.3.0 | ||||||||
| langchain==1.1.2 | ||||||||
| langchain-aws==1.1.0 | ||||||||
| langchain-anthropic==1.2.0 | ||||||||
| langchain-fireworks==1.1.0 | ||||||||
| langchain-community==0.4.1 | ||||||||
| langchain-core==1.1.1 | ||||||||
| langchain-experimental==0.4.0 | ||||||||
| langchain-google-vertexai==3.1.1 | ||||||||
| langchain-groq==1.1.0 | ||||||||
| langchain-openai==1.1.0 | ||||||||
| langchain-text-splitters==1.0.0 | ||||||||
| langchain-huggingface==1.1.0 | ||||||||
| langchain-classic==1.0.0 | ||||||||
| langdetect==1.0.9 | ||||||||
| langsmith==0.3.45 | ||||||||
| langserve==0.3.1 | ||||||||
| neo4j-rust-ext==5.28.1.0 | ||||||||
| langsmith==0.4.55 | ||||||||
| langserve==0.3.3 | ||||||||
| neo4j-rust-ext==5.28.2.1 | ||||||||
| nltk==3.9.1 | ||||||||
| openai==1.86.0 | ||||||||
| opencv-python==4.11.0.86 | ||||||||
| openai==2.9.0 | ||||||||
| psutil==7.0.0 | ||||||||
| pydantic==2.11.7 | ||||||||
| python-dotenv==1.1.0 | ||||||||
| pydantic==2.12.5 | ||||||||
| python-dotenv==1.1.1 | ||||||||
| python-magic==0.4.27 | ||||||||
| PyPDF2==3.0.1 | ||||||||
| PyMuPDF==1.26.1 | ||||||||
| starlette==0.46.2 | ||||||||
| sse-starlette==2.3.6 | ||||||||
| PyMuPDF==1.26.4 | ||||||||
| starlette==0.47.3 | ||||||||
| sse-starlette==3.0.2 | ||||||||
| starlette-session==0.4.3 | ||||||||
| tqdm==4.67.1 | ||||||||
| unstructured==0.18.14 | ||||||||
| unstructured[all-docs] | ||||||||
|
||||||||
| unstructured==0.18.14 | |
| unstructured[all-docs] | |
| unstructured[all-docs]==0.18.14 |
Copilot
AI
Dec 5, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using an alpha version (1.18a1) of graphdatascience in production is not recommended. Alpha versions are pre-release and may contain bugs or breaking changes. Consider using a stable release version instead.
| graphdatascience==1.18a1 | |
| graphdatascience==1.18.0 |
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -11,12 +11,12 @@ | |||
| from langchain_neo4j import Neo4jVector | ||||
| from langchain_neo4j import Neo4jChatMessageHistory | ||||
| from langchain_neo4j import GraphCypherQAChain | ||||
| from langchain.prompts import ChatPromptTemplate, MessagesPlaceholder | ||||
| from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder | ||||
| from langchain_core.output_parsers import StrOutputParser | ||||
| from langchain_core.runnables import RunnableBranch | ||||
| from langchain.retrievers import ContextualCompressionRetriever | ||||
| from langchain_community.document_transformers import EmbeddingsRedundantFilter | ||||
| from langchain.retrievers.document_compressors import EmbeddingsFilter, DocumentCompressorPipeline | ||||
| from langchain_classic.retrievers import ContextualCompressionRetriever | ||||
| from langchain_classic.document_transformers import EmbeddingsRedundantFilter | ||||
|
||||
| from langchain_classic.document_transformers import EmbeddingsRedundantFilter |
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -1,5 +1,5 @@ | ||||
| from langchain_neo4j import Neo4jGraph | ||||
| from langchain.docstore.document import Document | ||||
| from langchain_core.documents import Document | ||||
| from src.shared.common_fn import load_embedding_model,execute_graph_query | ||||
| from src.shared.common_fn import load_embedding_model,execute_graph_query | ||||
|
||||
| from src.shared.common_fn import load_embedding_model,execute_graph_query |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The command includes
-c constraints.txtbut there's no mention of aconstraints.txtfile in the repository or documentation. If this file doesn't exist or isn't provided, users will encounter an error. Either ensure the constraints.txt file is included in the repository or remove this flag from the command.