Extravi / araa-search

A privacy-respecting, ad-free, self-hosted Google metasearch engine with strong security that offers full API support and utilizes Qwant for images, and DuckDuckGo for auto-complete.
https://araa.extravi.dev
GNU Affero General Public License v3.0
129 stars 17 forks source link

Feature Request #20

Open DavidVeevt opened 1 year ago

DavidVeevt commented 1 year ago

Hi, I have a feature request for Tailsx. Is there anyway that you develop so that it has an AI chat function that uses gpt-3.5-turbo. Also is there any possibility to make the design similar to you.com or bing.com? AI Inspiration: You.com Chat and Bing Chat. Design Inspiration: You.com, Bing.com and Neeva.com

Extravi commented 1 year ago

i am looking into adding chatgpt soon

Extravi commented 1 year ago

I don't have a working API key for openai and it cost money so I can't develop it sorry.

Extravi commented 1 year ago

Screenshot from 2023-07-07 16 02 17

amogusussy commented 1 year ago

You can use brave's summarizer. This is the URL for its api: https://search.brave.com/api/summarizer?key=query:us:en

It's quite good, since it gives references to what it's saying, and if it knows something's wrong, it wont give any result.

Also, its terms of use seem okay too. This is all I could find that could be somewhat related to API use, but Tailsx doesn't have a lot of users, so its load wont be 'unreasonable.'

Further, you shall not (directly or indirectly): 
(i) take any action that imposes or may impose an unreasonable or disproportionately large load on Brave’s (or its third party providers’) infrastructure; or
(ii) interfere or attempt to interfere with the proper working of the Service or any activities conducted on the Service; 
(iii) bypass any measures Brave may use to prevent or restrict access to the Service (or parts thereof).
Extravi commented 1 year ago

You can use brave's summarizer. This is the URL for its api: https://search.brave.com/api/summarizer?key=query:us:en

It's quite good, since it gives references to what it's saying, and if it knows something's wrong, it wont give any result.

Also, its terms of use seem okay too. This is all I could find that could be somewhat related to API use, but Tailsx doesn't have a lot of users, so its load wont be 'unreasonable.'

Further, you shall not (directly or indirectly): 
(i) take any action that imposes or may impose an unreasonable or disproportionately large load on Brave’s (or its third party providers’) infrastructure; or
(ii) interfere or attempt to interfere with the proper working of the Service or any activities conducted on the Service; 
(iii) bypass any measures Brave may use to prevent or restrict access to the Service (or parts thereof).

i will use this instead

amogusussy commented 1 year ago

The requests can take a lot of time though, so it's probably best to implement it as a javascript fetch, rather than preloaded on every page.

Extravi commented 1 year ago

do you have revolt.chat or something amogusussy

amogusussy commented 1 year ago

I don't right now, but I can make one tomorrow (I'm about to go to sleep) if you want.

Extravi commented 1 year ago

i made a key but i dont know how to use it https://search.brave.com/api/summarizer?key=mykey&query=firefox

Extravi commented 1 year ago
{"type":"summarizer","status":"failed","results":[]}
TEMtheLEM commented 1 year ago

@Extravi try setting key to the search query

amogusussy commented 1 year ago

It only allows certain types of queries.

Try searching "what is the periodic table". That query gives a response for me.

amogusussy commented 1 year ago

Also, I don't think you need a key. Not including a key would make self hosting a lot easier.

Extravi commented 1 year ago

https://search.brave.com/api/summarizer?key=what%20is%20the%20periodic%20table:us:en

{"type":"summarizer","status":"failed","results":[]}
amogusussy commented 1 year ago

Try setting the user agent header.

Also, you could try searching it normally in search.brave.com, and see if any box that says summariser shows up. It might only be allowed in certain countries, due to new ai regulations.

Extravi commented 1 year ago

I think I will scrap this idea. The API isn't reliable when I could focus on other things.

Extravi commented 1 year ago

It works sometimes and sometimes it won't.

Extravi commented 11 months ago

I am not sure about it because how they get the API keys does not seem right and could be breaking OpenAI's TOS.

Extravi commented 11 months ago

like i dont want to get this project taken down by openai

Extravi commented 11 months ago

so i likely wont be using that

Extravi commented 11 months ago

i might use something else

Extravi commented 5 months ago

it's something that will happen at some point

Extravi commented 5 months ago

I'm working on adding asynchronous support using httpx first