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

Error in Langchain-neo4j support for Apache Age #29298

Open
5 tasks done
stephenljk opened this issue Jan 19, 2025 · 0 comments
Open
5 tasks done

Error in Langchain-neo4j support for Apache Age #29298

stephenljk opened this issue Jan 19, 2025 · 0 comments
Labels
🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature

Comments

@stephenljk
Copy link

Checked other resources

  • I added a very descriptive title to this issue.
  • I searched the LangChain documentation with the integrated search.
  • I used the GitHub search to find a similar question and didn't find it.
  • I am sure that this is a bug in LangChain rather than my code.
  • The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

Example Code

The following code

chain = GraphCypherQAChain.from_llm(
    ChatOpenAI(temperature=0), graph=graph, verbose=True, allow_dangerous_requests=True
)

from the link throws an error:

An error occurred: 1 validation error for GraphCypherQAChain
graph
Input should be an instance of GraphStore [type=is_instance_of, input_value=<langchain_community.grap...t at 0x000001D644EA71A0>, input_type=AGEGraph]
For further information visit https://errors.pydantic.dev/2.10/v/is_instance_of

The latest version of langchain-neo4j (0.2.0 and 0.1.1) don't support Age somehow. Have to revert to 0.1.0

Error Message and Stack Trace (if applicable)

No response

Description

I am trying to use langchain-neo4j to query Age as per shown in the documentation

System Info

System Information

OS: Linux
OS Version: #202405300957173698068022.04~44ea8a9 SMP PREEMPT_DYNAMIC Thu J
Python Version: 3.12.8 | packaged by conda-forge | (main, Dec 5 2024, 14:24:40) [GCC 13.3.0]

Package Information

langchain_core: 0.3.30
langchain: 0.3.14
langchain_community: 0.3.14
langsmith: 0.2.11
langchain_neo4j: 0.1.0
langchain_openai: 0.3.0
langchain_text_splitters: 0.3.5
langgraph_sdk: 0.1.51

Optional packages not installed

langserve

Other Dependencies

aiohttp: 3.11.11
async-timeout: 4.0.3
dataclasses-json: 0.6.7
httpx: 0.28.1
httpx-sse: 0.4.0
jsonpatch: 1.33
langsmith-pyo3: Installed. No version info available.
neo4j: 5.27.0
numpy: 1.26.4
openai: 1.59.8
orjson: 3.10.14
packaging: 24.2
pydantic: 2.10.5
pydantic-settings: 2.7.1
PyYAML: 6.0.2
requests: 2.32.3
requests-toolbelt: 1.0.0
SQLAlchemy: 2.0.37
tenacity: 9.0.0
tiktoken: 0.8.0
typing-extensions: 4.12.2
zstandard: 0.23.0

@dosubot dosubot bot added 🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature labels Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant