Installation Issues
Module not found errors after installation
Module not found errors after installation
Problem:Solutions:
- Verify installation:
- Reinstall dependencies:
- Check your Node.js version:
- For TypeScript projects, ensure
moduleResolutionis set correctly:
Peer dependency warnings
Peer dependency warnings
Problem:Solutions:
- For npm v7+, peer dependencies are installed automatically. You can ignore warnings if your app works.
- Install missing peer dependencies manually:
- Use
--legacy-peer-depsif necessary:
pnpm installation issues
pnpm installation issues
Problem:Solutions:
- Use the recommended pnpm version:
- Configure pnpm to handle peer dependencies:
- Install with:
Runtime Errors
OpenAI API errors (401, 429, 500)
OpenAI API errors (401, 429, 500)
Problem:Solutions:401 Unauthorized:429 Rate Limit:500 Server Error:
- Retry the request
- Check OpenAI status page
- Implement exponential backoff
TypeError: Cannot read property 'embedModel' of undefined
TypeError: Cannot read property 'embedModel' of undefined
Problem:Solution:Set the embedModel before using it:
Memory issues with large documents
Memory issues with large documents
Problem:Solutions:
- Increase Node.js memory limit:
- Process documents in batches:
- Use streaming for large files:
AsyncLocalStorage errors in Edge runtime
AsyncLocalStorage errors in Edge runtime
Problem:Solution:Use the edge-compatible entry point:
Configuration Problems
Environment variables not loading
Environment variables not loading
Problem:Solutions:
- Install and configure dotenv:
- For Next.js, use
.env.local:
- Verify the environment variable is set:
Vector store connection failures
Vector store connection failures
Problem:Solutions:
- Verify credentials:
- Check network connectivity:
- Increase timeout:
Chunk size and overlap configuration
Chunk size and overlap configuration
Problem:Solution:Configure the node parser:
Build and Bundling Issues
Next.js bundling errors
Next.js bundling errors
Problem:Solution:Configure Next.js to handle LlamaIndex properly:
Vite/Rollup bundling issues
Vite/Rollup bundling issues
Problem:Solution:Configure Vite:
TypeScript errors
TypeScript errors
Problem:Solutions:
- Ensure TypeScript configuration:
- Reinstall with types:
Performance Issues
Slow embedding generation
Slow embedding generation
Problem:
Embedding generation takes too long.Solutions:
- Use batch embedding:
- Use a faster model:
- Cache embeddings:
High API costs
High API costs
Problem:
OpenAI API costs are too high.Solutions:
- Use smaller models:
- Reduce chunk size to minimize embeddings:
- Use local models:
Getting More Help
If your issue isn’t covered here:Discord Community
Get real-time help from the community
GitHub Issues
Report bugs or request features
GitHub Discussions
Ask questions and share solutions
FAQ
Frequently asked questions
Debug Mode
Enable debug logging to troubleshoot issues:- API calls
- Document processing
- Embedding generation
- Query execution