1fdd4f52ecb7edd7e57440ac4b4e5d4b31fdd891
Refactor the getDocument method in KsDocumentController to return a single KSDocument object instead of a list. This improves the efficiency and readability of the code. The method now uses the findById method of ksDocumentRepository to retrieve the document with the specified id.
#Vector search index In a non dedicated istance the vectorSearch index must be created manually from Mongo Atlas interface.
Create a new Search index called vector_index wit following definition
{ "fields": [ { "numDimensions": 1536, "path": "embedding", "similarity": "cosine", "type": "vector" }, { "path": "metadata.KsApplicatioName", "type": "filter" }, { "path": "metadata.KsDoSource", "type": "filter" }, { "path": "metadata.Source", "type": "filter" }, { "path": "metadata.KsDoctype", "type": "filter" } ] }
Description
Languages
Java
98.6%
Shell
1.2%
Dockerfile
0.2%