https://github.com/typesense/langchain-integration-testground
https://github.com/typesense/langchain-integration-testground
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/typesense/langchain-integration-testground
- Owner: typesense
- Created: 2023-05-19T02:59:58.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-19T03:00:47.000Z (about 3 years ago)
- Last Synced: 2025-01-01T18:17:25.512Z (over 1 year ago)
- Language: Python
- Size: 15.6 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LangChain Typesense integration testground
This repo has scripts to exercise the LangChain Typesense integration.
## Setup
Required Python 3.11
**Install Dependencies:**
```shell
brew install python3
virtualenv venv -p /opt/homebrew/bin/python3 # On M1
source venv/bin/activate
pip3 install -r requirements.txt
```
**Start Typesense:**
```shell
export TYPESENSE_API_KEY="..."
mkdir $(pwd)/typesense-data
docker run -p 8108:8108 -v$(pwd)/typesense-data:/data typesense/typesense:0.24.1 \
--data-dir /data --api-key=$TYPESENSE_API_KEY --enable-cors
```
**Run LangChain script:**
```shell
export OPENAI_API_KEY="..."
export TYPESENSE_API_KEY="..."
python3 main.py
```