safetyAI / README.md
al1kss's picture
Update README.md
50a2d09 verified
|
raw
history blame
1.75 kB
metadata
title: YourAI - LightRAG Powered
emoji: πŸ”₯
colorFrom: red
colorTo: yellow
sdk: docker
pinned: false
license: mit
app_port: 7860

YourAI - LightRAG Powered

A sophisticated AI assistant powered by LightRAG (Retrieval-Augmented Generation) with conversation memory and custom AI creation capabilities.

Features

πŸ”₯ Fire Safety AI - Specialized AI for fire safety regulations and codes πŸ€– General AI - General-purpose conversational AI with memory πŸ› οΈ Custom AI Builder - Create your own AI with uploaded knowledge πŸ’¬ Conversation Memory - Maintains context within conversations πŸ“š Knowledge Management - Advanced GraphRAG for better information retrieval

How to Use

  1. Chat with Fire Safety AI - Ask questions about fire safety regulations
  2. General Chat - Have conversations with context awareness
  3. Create Custom AI - Upload documents to create specialized AI assistants
  4. Manage Conversations - View and manage your chat history

Technology Stack

  • LightRAG: Advanced retrieval-augmented generation
  • Cloudflare Workers AI: LLM and embedding models
  • FastAPI: High-performance API framework
  • NetworkX: Graph storage for knowledge relationships
  • NanoVectorDB: Vector storage for embeddings

API Endpoints

  • POST /chat/fire-safety - Chat with fire safety AI
  • POST /chat/general - General conversation
  • POST /chat/custom/{ai_id} - Chat with custom AI
  • POST /create-custom-ai - Create custom AI
  • POST /upload - Upload knowledge files
  • GET /conversations - Get user conversations

Models Used

  • LLM: @cf/meta/llama-3.2-3b-instruct
  • Embedding: @cf/baai/bge-m3

License

MIT License - Feel free to use and modify!