Initial chatbot ui

This commit is contained in:
Siddharth Ganesan
2025-07-08 16:38:22 -07:00
parent 70a5f4ec31
commit 17513d77ea
6 changed files with 862 additions and 10 deletions

View File

@@ -37,7 +37,8 @@ async function processDocsEmbeddings(options: ProcessingOptions = {}) {
const config = {
clearExisting: options.clearExisting ?? false,
docsPath: options.docsPath ?? path.join(process.cwd(), '../../apps/docs/content/docs'),
baseUrl: options.baseUrl ?? 'https://docs.simstudio.ai',
// Use localhost docs in development, production docs otherwise
baseUrl: options.baseUrl ?? (process.env.NODE_ENV === 'development' ? 'http://localhost:3001' : 'https://docs.simstudio.ai'),
chunkSize: options.chunkSize ?? 300, // Max 300 tokens per chunk
minChunkSize: options.minChunkSize ?? 100,
overlap: options.overlap ?? 50,