https://github.com/pinecone-io/pinecone-neo4j-explorer
https://github.com/pinecone-io/pinecone-neo4j-explorer
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pinecone-io/pinecone-neo4j-explorer
- Owner: pinecone-io
- Created: 2024-07-10T23:32:53.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-29T22:08:45.000Z (over 1 year ago)
- Last Synced: 2024-11-12T07:33:48.549Z (about 1 year ago)
- Language: TypeScript
- Size: 3.67 MB
- Stars: 5
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pinecone - Neo4j integration demo
### Supreme Court Case Analysis
This project consists of several components for processing, analyzing, and exploring Supreme Court cases. The main components are:
1. MongoDB Database
2. Neo4j Account
3. Pinecone Account
## Setup
1. Clone the repository
2. Install dependencies:
- In the root directory, install Python dependencies using Poetry:
```
poetry install
```
- In the `explorer` directory, install Node.js dependencies:
```
cd explorer
pnpm install
```
3. Set up environment variables in a `.env` file:
- NEO4J_URI
- NEO4J_USERNAME
- NEO4J_PASSWORD
- MONGODB_USERNAME
- MONGODB_PASSWORD
- MONGODB_HOST
- MONGODB_DATABASE
- PINECONE_API_KEY
- OPENAI_API_KEY
## Data Processing
The data processing scripts are located in Jupyter notebooks:
1. `process_raw.ipynb`: Fetches and processes raw case data
2. `process_scotus.ipynb`: Processes SCOTUS cases and generates embeddings
## Running the Application
Once you complete processing the data, you can start the application by running the following in the `explorer` directory:
```
pnpm dev
```