Skip to content

langchain-ai/neo4j-semantic-layer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

neo4j-app

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.

template

Installation

Install the LangChain CLI if you haven't yet

pip install -U langchain-cli

Create app and add neo4j-semantic-layer package

langchain app new . 
What package would you like to add? (leave blank to skip): neo4j-semantic-layer  

Run locally

langchain serve

Open the playground:

http://127.0.0.1:8000/neo4j-semantic-layer/playground/

Screenshot 2024-01-10 at 12 09 58 PM

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>

Run with hosted LangServe

Use LangSmith console to import this repo.

Screenshot 2024-01-10 at 12 14 31 PM