Skip to content

zAlweNy26/ts-cat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cheshire Cat (Stregatto)

GitHub Stars Discord Server GitHub Issues GitHub Latest Tag GitHub Top Language

TypeScript version of the Cheshire Cat AI framework originally made in Python.

Check out the linked project for more information on what's being worked on.

📜 For the full list of changes, please read the changelog file.

👥 If you want to contribute, please read the contributing file.

📃 To be sure to respect everything, please read the code of conduct file.

Why use the cat?

  • ⚡️ API first, so you get a microservice to easily add a conversational layer to your app
  • 🐘 Remembers conversations and documents and uses them in conversation
  • 🚀 Extensible via plugins
  • 🏛️ Event callbacks, function calling (tools), conversational forms
  • 🌍 Supports any language model (works with OpenAI, Google, Ollama, HuggingFace, custom services and many others)
  • 🐋 Production ready - 100% dockerized

Features

  • Granular plugins folder reload
  • Sync/Async ingestion endpoints
  • New built-in LLMs and Embedders
  • Instant tool call hook
  • Granular management of procedures (forms and tools)
  • Supports cron jobs (without saving to memory)
  • Rate limiter
  • Database query executor
  • Supports streaming both in WebSocket and HTTP
  • Tokens usage visible through model interactions
  • Cache support for LLM and Embedder responses
  • Built-in CLI
  • External plugins registry support
  • Add multi-modality support
  • Add multi-agent support
  • Add multi-chat support

Pre-requisites

  • Bun (>= 1.2) (for local development)
  • Docker

Installation

# (for development)
bun install

# (for production)
docker compose build --no-cache

How to run

# (for development)
docker run -p 6333:6333 qdrant/qdrant
bun run dev
# OR (if you are using the dev docker compose)
docker compose -f compose.dev.yml build --no-cache
docker compose -f compose.dev.yml up -d

# (for production)
docker compose up

How to run CLI

bun run cli <command>
# OR (if you are using the dev compose)
docker exec ccat_ts_dev bun run cli <command>
# OR (if you are using the prod compose)
docker exec ccat_ts bun run cli <command>

How to test

bun run test
# OR (if you are using the dev compose)
docker exec ccat_ts_dev bun run test
# OR (if you are using the prod compose)
docker exec ccat_ts bun run test

License

This project is licensed under the GPL-3.0 License - see the LICENSE file for details.