ExercisesSolve 6 real-world chunking, retrieval, citation, and hallucination-prevention scenarios.1. A refund policy ends Chunk 1 with 'Refunds allowed in 30 days' and starts Chunk 2 with 'except opened software'. Users get wrong answers. What fixes this? Increase chunk_overlap (e.g., 10–20%) and use ChunkingStrategy.SENTENCE so exceptions stay attached to rules Delete Chunk 2 from the index Disable retrieval completelySubmit AnswerShow AnswerTry Again2. KeywordIndex misses a customer asking 'terminate my plan' because your doc says 'cancel subscription'. What upgrade solves synonym mismatch? Semantic vector search with embeddings (e.g., KnowledgeConfig(vector_store='chroma')) Converting the doc to uppercase Shortening chunk_size to 5 charactersSubmit AnswerShow AnswerTry Again3. When index.query(question) returns an empty list, what should your RAG wrapper do? Short-circuit and return an explicit refusal ('Not in the docs') without letting the LLM guess Send the empty string to the LLM and ask it to be creative Dump every file on disk into the promptSubmit AnswerShow AnswerTry Again4. Your RAG app gets slow and expensive because it re-embeds 200 PDFs on every HTTP request. What is the fix? Persist the vector store on disk once during ingestion and only re-index changed files Switch to a larger reasoning model Increase retrieval_k to 50Submit AnswerShow AnswerTry Again5. Why should you require [DOC-x] citation tags in your RAG agent's reply and verify them in Python? Users can audit sources directly and code can reject fabricated citations Citations compress PDFs into JSONL Vector stores refuse to run without bracketsSubmit AnswerShow AnswerTry Again6. What does setting retrieval_threshold=0.7 and rerank=True in KnowledgeConfig accomplish? Filters out weak low-similarity matches and re-orders top candidates for highest precision Generates synthetic training images Disables chunking overlapSubmit AnswerShow AnswerTry AgainBack to the RAG tutorial