SEMOSS / Semoss

Apache License 2.0
28 stars 5 forks source link

Code changes for formatting response of search call in chroma vector db. #168

Open Pragya7011 opened 1 month ago

Pragya7011 commented 1 month ago

Code changes for formatting response from nearest neighbour call search in chroma vector db.

Sample Command : VectorDatabaseQuery ( engine = "41766dd6-cfc0-4425-ac7c-e0e1715bbfab" , command = "what is somatosensory" , limit = 5 ) ;

O/P : [ { "Content": "This is a...", "Divider": "1, 2", "Modality": "text", "Part": "0", "Source": "somatosensory.pdf", "Tokens": 488 }, { "Content": "receptors respond to ..", "Divider": "3, 4", "Modality": "text", "Part": "0", "Source": "somatosensory.pdf", "Tokens": 500 } ]

themaherkhalil commented 4 weeks ago

Can we take a look at the changes I pushed and see if that does what the previous code was doing?

Pragya7011 commented 1 week ago

@themaherkhalil : We are getting formatted search response with new code . Please merge the code.