mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-28 07:57:44 +00:00
6e7a6cbe38
Change: Instead of truncating texts, now using intelligent chunking: 1. Content ≤ 20,000 characters: Single embedding (complete) 2. Content > 20,000 characters: Split into 20k chunks - Each chunk gets its own embedding - All embeddings are averaged - No information loss! Benefits: - No more text truncation - Full information preserved - Stays under 8192 token limit (nomic-embed-text) - Average embedding represents entire text Affected files: - rdagent/components/knowledge_management/vector_base.py