Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Search Model Configurable on Server #544

Merged

Conversation

debanjum
Copy link
Member

@debanjum debanjum commented Nov 15, 2023

  • Make search model configurable on server
  • Update migration script to get search model from khoj.yml to Postgres
  • Update first run message on Khoj Desktop and Web app landing page
  • Other miscellaneous bug fixes

- Expose ability to modify search model via Django admin interface
- Previously the bi_encoder and cross_encoder models to use were set
  in code
- Now it's user configurable but with a default config generated by
  default
@debanjum debanjum force-pushed the make-search-models-configurable branch from 8af12db to 8f200cf Compare November 15, 2023 03:09
Copy link
Member

@sabaimran sabaimran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few comments, but looks good!

@debanjum debanjum force-pushed the make-search-models-configurable branch from cf74fa4 to 348cc0c Compare November 16, 2023 01:32
sabaimran and others added 7 commits November 15, 2023 17:32
Update the return type of the API token generator
- While sigmoid normalization isn't required for reranking.
  Normalizing score to distance metrics for both encoder and cross
  encoder scores is useful to reason about them
- Softmax wasn't required as don't need probabilities, sigmoid is good
  enough to get distance metric
…ions

- Open Web app settings in the default browser via link click
- Open Desktop app settings via link click
- Link to Django admin panel for user to create Chat Models on their
  Khoj server
- This should only get hit when user is not using Khoj cloud, as Khoj
  cloud would already have Chat models configured
@debanjum debanjum merged commit 208dddd into features/multi-user-support-khoj Nov 16, 2023
@debanjum debanjum deleted the make-search-models-configurable branch November 16, 2023 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants