Over the past few months, we've built a large collection of template LangServe apps. This repo showcases a template from Neo4J, the neo4j-semantic-layer. Here, we turn the template into a web service with LangServe. This repo can be deployed using Hosted LangServe.
Install the LangChain CLI if you haven't yet
pip install -U langchain-cli
langchain app new .
What package would you like to add? (leave blank to skip): neo4j-semantic-layer
langchain serve
Open the playground:
http://127.0.0.1:8000/neo4j-semantic-layer/playground/
Ensure API keys are set:
OPENAI_API_KEY=<YOUR_OPENAI_API_KEY>
NEO4J_URI=<YOUR_NEO4J_URI>
NEO4J_USERNAME=<YOUR_NEO4J_USERNAME>
NEO4J_PASSWORD=<YOUR_NEO4J_PASSWORD>
Use LangSmith console to import this repo.