Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/smatiolids/astra-agent-nextjs
https://github.com/smatiolids/astra-agent-nextjs
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/smatiolids/astra-agent-nextjs
- Owner: smatiolids
- Created: 2023-10-11T19:59:14.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-20T14:03:16.000Z (about 1 year ago)
- Last Synced: 2024-04-22T00:14:28.127Z (7 months ago)
- Language: TypeScript
- Size: 220 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Astra Agent NextJS
This demo is a simple Astra AI Agent built with NextJS, Astra and OpenAI.
It is built over the standard Cassio Python data model, but I created a simple CassioJS here.
![Screenshot](docs/nextjs-astra.png)
The form on the main page invokes the API, built at app/api/chat.
The API generates the embedding, searches for similar contents from the database, and creates the prompt, then returns the answer to the application.
## How to run
- Git Clone
- Adjust you environment variables (copy _env_sample to .env)
- npm install
- npm run dev