Hello folks, I am neew here, first of all Llama index is awesome, and I have been actually facing a problem, and I believe that the answer lies in llama index, (went through the documentation), but I still need some help.
So suppose I have been given a csv table of subject metadata, of different subject concepts. Example
Biology
chem
physics
Now in biology also there are even sub categories like
- physiology
- botany
similarly goes for chemistry and physics.
Now while I go to query something, before doing the embedding based similarity search, I wanted to now whether I can do this keyword based search first (keyword index or tree idk, a bit confused). Take these scenerio, I asked the question at first, and assuming my LLM (which is first forced to give a json metadata of the query like this)
text: ...
subject: ...
subject_department: [....] # the query can belong to more than one department
now I will send it to my index so that my search space now becomes
biology
- botany
- genomics
Now I will do vector search all the document embeddings belonging to node (botany) and (genomics). And return the answer in some format (with metadata), so how can I do that? using llama-index any kind of pseduo code or something you guys can help me out?