📚 TypeScript RAG API

Retrieval Augmented Generation for TypeScript Documentation

🔍 Try the API

Answer:

📝 Example Questions

Q: What does the author affectionately call the => syntax?
A: fat arrow
Q: Which operator converts any value into an explicit boolean?
A: !!
Q: What are arrow functions also called?
A: fat arrow or lambda functions

🚀 API Endpoints

Local Development:

GET http://127.0.0.1:8000/search?q=your_question

Production (Cloudflare Pages):

GET https://tdsfu.pages.dev/api/GA3/8?q=your_question

Response Format:

{ "answer": "string containing the relevant documentation excerpt", "sources": "TypeScript Deep Dive by Basarat Ali Syed", "confidence": 0.850 }