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

LangChain Community Removal #8

Merged

Conversation

alexthomas93
Copy link
Collaborator

This PR removes the LangChain Community package dependency. It ports the remaining small utility classes and helper functions directly into the LangChain Neo4j codebase, reducing external dependencies while maintaining full existing functionality. The classes and functions ported are:

from langchain_community.chains.graph_qa.prompts import (
    CYPHER_GENERATION_PROMPT,
    CYPHER_QA_PROMPT,
)
from langchain_community.graphs.graph_document import GraphDocument, Node, Relationship
from langchain_community.graphs.graph_store import GraphStore
from langchain_community.vectorstores.utils import DistanceStrategy

This PR also replaces an import of the maximal_marginal_relevance function from LangChain Community with one from LangChain Core.

@alexthomas93 alexthomas93 force-pushed the feature/community-removal branch from 02e3cd1 to a1eda0d Compare November 20, 2024 15:33
@alexthomas93 alexthomas93 merged commit 5444b2b into langchain-ai:main Nov 20, 2024
8 checks passed
@alexthomas93 alexthomas93 deleted the feature/community-removal branch November 20, 2024 15:35
@alexthomas93
Copy link
Collaborator Author

@CodiumAI-Agent /update_changelog

@CodiumAI-Agent
Copy link

Changelog updates: 🔄

2024-11-20

Changed

  • Removed dependency on LangChain Community package by integrating necessary components directly into the LangChain Neo4j codebase.
  • Updated imports to use LangChain Core and LangChain Neo4j modules.

to commit the new content to the CHANGELOG.md file, please type:
'/update_changelog --pr_update_changelog.push_changelog_changes=true'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants