I want to do RAG and I got the following hint: organize context chunks by topic/domain…
- User
I want to do RAG and I got the following hint: organize context chunks by topic/domain for retrieval. How can I implement this?
Assistant
Here are some ways to organize context chunks by topic/domain for retrieval using RAG:
-
Create topic/domain folders or directories in your file system and save context chunks as files within the appropriate folders. For example, folders for "politics", "science", "movies", etc.
-
Use a database and create tables with topic/domain columns to categorize context chunks. You can then query the database to retrieve chunks related to a specific topic.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.