langchain/templates/neo4j-parent
Erick Friis ebf998acb6
Templates (#12294)
Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
Co-authored-by: Lance Martin <lance@langchain.dev>
Co-authored-by: Jacob Lee <jacoblee93@gmail.com>
2023-10-25 18:47:42 -07:00
..
neo4j_parent Templates (#12294) 2023-10-25 18:47:42 -07:00
tests Templates (#12294) 2023-10-25 18:47:42 -07:00
dune.txt Templates (#12294) 2023-10-25 18:47:42 -07:00
ingest.py Templates (#12294) 2023-10-25 18:47:42 -07:00
main.py Templates (#12294) 2023-10-25 18:47:42 -07:00
poetry.lock Templates (#12294) 2023-10-25 18:47:42 -07:00
pyproject.toml Templates (#12294) 2023-10-25 18:47:42 -07:00
README.md Templates (#12294) 2023-10-25 18:47:42 -07:00

Parent Document Retriever with Neo4j Vector Index

This template allows you to balance precise embeddings and context retention by splitting documents into smaller chunks and retrieving their original or larger text information.

Set up Environment

You need to define the following environment variables

OPENAI_API_KEY=<YOUR_OPENAI_API_KEY>
NEO4J_URI=<YOUR_NEO4J_URI>
NEO4J_USERNAME=<YOUR_NEO4J_USERNAME>
NEO4J_PASSWORD=<YOUR_NEO4J_PASSWORD>

Installation

# from inside your LangServe instance
poe add neo4j-parent