-
Notifications
You must be signed in to change notification settings - Fork 2
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
How to add an Embedding Model? #56
Comments
I need to update the readme, but this page has the information on how to enable and use embeddings: The setting is indexEmbeddings: true
indexSummary: false
chat:
searchEmbeddings: false
bakeMessages: true
embeddingModels:
# Only the first model is currently used
- name: ollama-all-minilm
modelName: all-minilm
provider: ollama
baseUrl: https://ollama.lan.my.domain
requireAuth: false The embeddings stuff is usable, but parts are still WIP. Normal embeddings generation and indexing is fine, but generating summaries of each note and then indexing those summaries is pretty flaky right now. Enabling I may remove the 'select embedding model' command soon - it only affects the client, and all of the indexing happens on the server. Basically just the first model you define is the one used to generate embeddings. |
Also, please feel free to leave any feedback you come up with if you try this out! |
Note I use local Settings:
Steps
And after that my space kind of breaks when I re-open the app (it doesn't want to pull in data anymore, just shows the header and blank content) Weirdly, when I remove all settings related to indexing/embedding, then the |
Oh wait. Issue two goes away if I use the proper url: |
Meh. And now it works even with Case solved I think! Thanks! |
Uhm or not 🤣 I will play more with it before giving more feedback ;) |
Can you check your server's log and see if you see messages like this?
To test, I'd recommend configuring embeddingModels and setting indexEmbeddings to true, then go and change a random page and check the log to see if it indexed it properly or had some sort of error. If it was successful, then it should be safe to do a full re-index. Depending on how big your space is, this could take a long time :D
This might mean you only have 2 pages indexed so far with embeddings. You can confirm this using a query on any page like this:
|
I can see the command "choose embedding model from list", however it is unclear to me how to add an embedding model.
I tried:
Which did not work. It appears to be implemented, but in the readme I can see the specific commands are still
undefined
, so perhaps this is still WIP?Thanks!
The text was updated successfully, but these errors were encountered: