feat(chat): add Brainy Chat foundation and documentation

- Add initial BrainyChat class implementation with context management
- Update BRAINY-CHAT.md with comprehensive documentation
- Update README.md to include Brainy Chat preview feature
- Foundation for natural language interaction with vector data
This commit is contained in:
David Snelling 2025-08-07 14:25:35 -07:00
parent 66b00bffeb
commit 1c5c972670
3 changed files with 348 additions and 129 deletions

View file

@ -15,16 +15,23 @@
# 🆕 Coming Soon: Talk to Your Data with Brainy Chat!
**Transform your database into an AI that understands your data:**
**Transform your database into an AI that understands your data - with just ONE simple method:**
```javascript
// Coming in v0.56!
const chat = await BrainyChat.create(brainy)
// Coming in v0.56 - Impossibly simple API!
const chat = new BrainyChat(brainy) // That's it!
const answer = await chat.ask("What patterns do you see in customer behavior?")
// → AI analyzes YOUR data and relationships to provide insights
// → Works instantly with zero config!
// Want smarter responses? Just add an optional LLM:
const smartChat = new BrainyChat(brainy, { llm: 'Xenova/LaMini-Flan-T5-77M' })
const smartAnswer = await smartChat.ask("Analyze our Q4 performance")
// → Same simple API, but now with LLM-powered insights!
```
[📖 **Learn More About Brainy Chat**](BRAINY-CHAT.md) | **Zero extra dependencies** | **Uses existing embeddings**
**🎯 One interface. Optional LLM. Zero complexity.**
[📖 **Learn More About Brainy Chat**](BRAINY-CHAT.md) | **Zero extra dependencies** | **Works without LLM, better with it**
---