-
Notifications
You must be signed in to change notification settings - Fork 40
searxng: init #241
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
searxng: init #241
Conversation
I just tried it out with the following settings: {
services.searxng."searxng1" = {
enable = true;
settings = {
use_default_settings = true;
server.secret_key = "secret";
search.formats = [ "html" "json" ];
};
};
} And tried out the ❯ curl -G 'http://localhost:1234/search' \
--data-urlencode 'q=OpenAI' \
--data-urlencode 'format=json' | jq '.results | .[:1]'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 34975 100 34975 0 0 11099 0 0:00:03 0:00:03 --:--:-- 11099
[
{
"url": "https://openai.com/",
"title": "OpenAI",
"content": "OpenAI announces GPT-4o, a new version of its powerful language model, and ChatGPT, a free service that lets you chat with it. Learn more about their research, products, and mission to create safe and beneficial artificial general intelligence.",
"thumbnail": "",
"engine": "google",
"parsed_url": [
"https",
"openai.com",
"/",
"",
"",
""
],
"template": "default.html",
"engines": [
"duckduckgo",
"google",
"brave"
],
"positions": [
1,
1,
1,
2
],
"publishedDate": "2024-05-13T00:00:00",
"score": 14.0,
"category": "general"
}
] pretty cool! will be really helpful to provide search engine access to agents. |
Already using it in conjunction with open-webui on my server, that's the reason why I did this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM from my side.
Can merge after @shivaraj-bh review (and addressing of comments) with CI fully passing (currently fails on mac).
For the time-being, we can disable tests for this package on Darwin (like we do for grafana), with a comment linking to upstream issue: NixOS/nixpkgs#321329. |
I think i'm done. |
Top! thanks. |
This PR:
searxng
serviceTest with: