https://github.com/kenzic/langchain-recipe-bot
Repo for Medium tutorial "Talk to Your Notion Database with LangChain.js"
https://github.com/kenzic/langchain-recipe-bot
chromadb javascript langchain langchain-js notion notion-api notion-database
Last synced: 24 days ago
JSON representation
Repo for Medium tutorial "Talk to Your Notion Database with LangChain.js"
- Host: GitHub
- URL: https://github.com/kenzic/langchain-recipe-bot
- Owner: kenzic
- License: mit
- Created: 2024-03-15T00:07:59.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-23T17:51:15.000Z (about 2 years ago)
- Last Synced: 2025-01-29T13:24:50.419Z (over 1 year ago)
- Topics: chromadb, javascript, langchain, langchain-js, notion, notion-api, notion-database
- Language: JavaScript
- Homepage: https://medium.com/@kenzic/talk-to-your-notion-database-with-langchain-js-d3b15900d79e
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LangChain Recipe Bot
> This is a high-level README. For detailed guide on how to use this project, please refer to the [Medium Article](https://medium.com/@kenzic/talk-to-your-notion-database-with-langchain-js-d3b15900d79e)
## Setup
1. Clone the reop: `git clone git@github.com:kenzic/langchain-recipe-bot.git`
2. Install dependencies: `npm install`
3. Add recipe template to Notion, create custom connection that has permission to access Notion database. Follow this [guide](https://medium.com/@kenzic/talk-to-your-notion-database-with-langchain-js-d3b15900d79e) for help.
4. Create a `.env` file in the root of the project and add the following (replace brackets with your own values):
```
OPENAI_API_KEY=
COLLECTION_NAME="recipes-4"
NOTION_DATABASE_ID=
NOTION_AUTH_SECRET=
```
5. run ChromaDB
6. Load data into ChromaDB. `npm run load`
## Usage
1. Start the bot: `npm run chat`
2. Chat away