terraphim / terraphim-ai

Terraphim AI: deterministic AI Assistant
https://terraphim.ai
Apache License 2.0
20 stars 3 forks source link

Amend scoring function to allow passing of different scoring functions #94

Closed AlexMikhalev closed 4 months ago

AlexMikhalev commented 4 months ago

There are different scorers here copy pasted from one of @burntShushi repositories. Currently, the default scorer is hardcoded. Steps:

  1. Amend rescorer to allow passing different score functions, amend Enum to allow change via Role Config.
  2. Normalize scorer and document rank; I prefer rank as uint64 - it can be used for placing in UI, rather than traditional float.
  3. Amend scoring function to return vec of IndexedDocuments
  4. Create tests for each scorer
AlexMikhalev commented 4 months ago

See #57