abi / secret-llama

Fully private LLM chatbot that runs entirely with a browser with no server needed. Supports Mistral and LLama 3.
https://secretllama.com
Apache License 2.0
2.45k stars 145 forks source link

Support for fragment query #1

Open kuchta opened 5 months ago

kuchta commented 5 months ago

Thank you for this amazing project. Is is something I hoped for a long time 🙏🏻❤️

It would be handy though to have some support for fragment queries so that I can save it as a search engine and use it as such.

Example:

https://secretllama.com/#capital%20of%20india
abi commented 5 months ago

When you visit the example URL, the app should automatically send a first message with the text in the fragment query?

Does Chrome support search engine URLs like this?

kuchta commented 5 months ago

Yes, exactly. I suppose it's better to use fragment then query since that would send the text to the server which would undermine privacy benefits of running LLM locally. Regarding search engine, Brave does support that so I suppose Chrome does as well.

abi commented 5 months ago

Yes, fragment would be more privacy preserving.