https://github.com/davidjktofan/workers-ai-rag
Building a Retrieval Augmented Generation (RAG) AI with Cloudflare
https://github.com/davidjktofan/workers-ai-rag
cloudflare-workers retrieval-augmented-generation workers-ai
Last synced: 6 months ago
JSON representation
Building a Retrieval Augmented Generation (RAG) AI with Cloudflare
- Host: GitHub
- URL: https://github.com/davidjktofan/workers-ai-rag
- Owner: DavidJKTofan
- License: mit
- Created: 2023-10-04T21:47:21.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-23T08:39:44.000Z (about 1 year ago)
- Last Synced: 2024-08-23T09:51:19.523Z (about 1 year ago)
- Topics: cloudflare-workers, retrieval-augmented-generation, workers-ai
- Language: JavaScript
- Homepage: https://ai.cf-testing.com/?text=What%20is%20the%20capital%20of%20France?
- Size: 104 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Retrieval Augmented Generation (RAG) AI
Building a Retrieval Augmented Generation (RAG) AI with Cloudflare:
* Workers AI
* Vectorize
* D1 database
* Hono ([external dependency](https://hono.dev/))Using the models:
* Generative text model `@cf/meta/llama-3.1-8b-instruct` - [llama-3.1-8b-instruct](https://developers.cloudflare.com/workers-ai/models/llama-3.1-8b-instruct/)
* Text Embedding / Feature extraction model `@cf/baai/bge-large-en-v1.5` - [bge-large-en-v1.5](https://developers.cloudflare.com/workers-ai/models/bge-large-en-v1.5/)Tutorial: [Build a Retrieval Augmented Generation (RAG) AI](https://developers.cloudflare.com/workers-ai/tutorials/build-a-retrieval-augmented-generation-ai/)
## Usage
Visit `ai.cf-testing.com` and add your question to the `?text=` query:
```
https://ai.cf-testing.com/?text=What%20is%20the%20capital%20of%20France?
```# Disclaimer
For educational purposes only.