Giter Club home page Giter Club logo

nashsu / freeaskinternet Goto Github PK

View Code? Open in Web Editor NEW
8.0K 8.0K 861.0 763 KB

FreeAskInternet is a completely free, PRIVATE and LOCALLY running search aggregator & answer generate using MULTI LLMs, without GPU needed. The user can ask a question and the system will make a multi engine search and combine the search result to LLM and generate the answer based on search results. It's all FREE to use.

License: Apache License 2.0

Dockerfile 1.41% Python 98.59%

freeaskinternet's People

Contributors

nashsu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

freeaskinternet's Issues

typo

typo

should be 'and' here

image

问下GPT 是如何查询searxng的返回结果的?

  1. 问下GPT 是如何查询searxng的返回结果的?是用了类似RAG的技术吗? 还是有什么简单的方法?
  2. 还有 searxng查询的结果会缓存吗?

看了下 searxng项目 searxng的搜索网络的结果好像是保存在redis里面

没有内容,只有链接展示

描述

通过README中描述执行 git clone 项目并执行docker 相关命令,本地可以运行,输入问题之后回复中只有链接没有内容

截图

image

Transport unknown

{
"code": 0,
"message": "Transport unknown"
}

2024-04-10 09:14:31,843 ERROR:searx.engines.wikidata: Fail to initialize
searxng_1 | Traceback (most recent call last):
searxng_1 | File "/usr/local/searxng/searx/network/init.py", line 95, in request
searxng_1 | return future.result(timeout)
searxng_1 | ^^^^^^^^^^^^^^^^^^^^^^
searxng_1 | File "/usr/lib/python3.11/concurrent/futures/_base.py", line 458, in result
searxng_1 | raise TimeoutError()
searxng_1 | TimeoutError
searxng_1 |
searxng_1 | The above exception was the direct cause of the following exception:
searxng_1 |
searxng_1 | Traceback (most recent call last):
searxng_1 | File "/usr/local/searxng/searx/search/processors/abstract.py", line 73, in initialize
searxng_1 | self.engine.init(get_engine_from_settings(self.engine_name))
searxng_1 | File "/usr/local/searxng/searx/engines/wikidata.py", line 774, in init
searxng_1 | jsonresponse = send_wikidata_query(query)
searxng_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
searxng_1 | File "/usr/local/searxng/searx/engines/wikidata.py", line 161, in send_wikidata_query
searxng_1 | http_response = get(SPARQL_ENDPOINT_URL + '?' + urlencode({'query': query}), headers=get_headers())
searxng_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
searxng_1 | File "/usr/local/searxng/searx/network/init.py", line 164, in get
searxng_1 | return request('get', url, **kwargs)
searxng_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
searxng_1 | File "/usr/local/searxng/searx/network/init.py", line 97, in request
searxng_1 | raise httpx.TimeoutException('Timeout', request=None) from e
searxng_1 | httpx.TimeoutException: Timeout
searxng_1 | 2024-04-10 09:14:31,884 ERROR:searx.engines.wikidata: Fail to initialize
searxng_1 | Traceback (most recent call last):
searxng_1 | File "/usr/local/searxng/searx/network/init.py", line 95, in request
searxng_1 | return future.result(timeout)
searxng_1 | ^^^^^^^^^^^^^^^^^^^^^^
searxng_1 | File "/usr/lib/python3.11/concurrent/futures/_base.py", line 458, in result
searxng_1 | raise TimeoutError()
searxng_1 | TimeoutError

Error message

"request returned Internal Server Error for API route and version http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/json?all=1&filters=%7B%22label%22%3A%7B%22com.docker.compose.config-hash%22%3Atrue%2C%22com.docker.compose.project%3Dfreeaskinternet%22%3Atrue%7D%7D, check if the server supports the requested API version"

Conflicting Prompts Lead to Chinese-Only Answers

Here is a summary of the issue:
image

In English, explain the rocket equation
Chinese answer supplied

When I looked through the code to see what might cause this, I saw two main portions of the prompt written in Chinese.

If Google translate is correct, the first prompt states:

Unless it's a code, a specific name, or a reference number, the language of the answer should be the same as the question.

I agree with this

The second prompt states:

Responses must be in Chinese Simplified

In the end, the second prompt wins because all responses are in Chinese Simplified. Which, if you want to open up this project to the larger community, keeping the same language as the question should be preferred.

Set dependent containers Restart-policy =always

When FreeAskInternet is using docker compose up, if the OS is restarted again, these few dependent containers will not auto-start. It's better to set the Restart-policy of the dependent containers to always

只有链接没内容的看这里,临时解决方案

docker network create my_network
docker run -d  --restart always --network my_network --name aurora -p 8080:8080 ghcr.io/aurora-develop/aurora:latest

docker run -d --name backend --network my_network \
  -p 8000:8000 \
  --restart on-failure \
  docker.io/duriancat/free_ask_internet:1.0

docker run -d --name chatgpt-next-web --network my_network \
  -p 3000:3000 \
  -e OPENAI_API_KEY="FreeAskInternet" \
  -e BASE_URL="http://backend:8000" \
  -e CUSTOM_MODELS="-all,+gpt-3.5-turbo" \
  --restart always \
  yidadaa/chatgpt-next-web

docker run -d --name searxng --network my_network \
  -v $(pwd)/searxng:/etc/searxng:rw \
  -e SEARXNG_BASE_URL=https://${SEARXNG_HOSTNAME:-localhost}/ \
  --cap-drop ALL \
  --cap-add CHOWN \
  --cap-add SETGID \
  --cap-add SETUID \
  --log-driver json-file \
  --log-opt max-size=1m \
  --log-opt max-file=1 \
  --restart always \
  docker.io/searxng/searxng:latest

换一下就行了FreeGPT3.5,用以上直接跑就 ok
image

Project is Not Completely Local Nor Private

The description claims the following:

  • 💻 Completely LOCAL (no GPU need, any computer can run )
  • 🔐 Completely PRIVATE (all thing runing locally)

Both points are lies. While the search is performed locally, piping all that data into OpenAI's servers is not local nor private in the slightest. It's a cool idea, but at this point this repo doesn't provide anything more than me just using OpenAI's interface directly.

You do not get to claim that everything is local and private when you depend on an external web API. That goes against the whole meaning of those two words.

优化 执行 google search之前的 分析理解 能力

只有 搜索列表 没有 回答的 问题 我是 通过 退出登录 chat.openai.com 解决的, 似乎openai把 已登录的ip给标记了, 故意不让用 不登录而使用gpt3.5 的功能

觉得FreeAskInternet在执行google搜索之前 理解和分解 问题 还需要优化, 能优化好, 可以直接碾压google了, 完全 可以 搞个 新公司 来 运营 这项目:

Screenshot 2024-04-10 at 16-18-14 NextChat

Screenshot 2024-04-10 at 16-10-48 2024-04-10-161020_1920x1080_scrot png (PNG Image 1920 × 1080 pixels) — Scaled (85%)

不过 跟 https://gaigle.com 的gpt4对比, gpt4回答也有问题:
Screenshot 2024-04-10 at 16-37-00 gAIgle com

项目运行后请求报错

docker有设置http_proxy, 在searxng容器内请求query.wikidata.org是可以的,但正常运行对话会有如图的报错
大佬,是我的网络问题么?

image

通过代理无法访问

服务器中已经安装梯子 服务器本身可以访问openai 在docker中配置了代理 无法访问
image

Please make freechatgpt and searxng endpoints configurable

First of all, thanks for sharing this great project, it's pretty cool.

Currently they are hardcoded:

cannot start

ERROR: Invalid interpolation format for "searxng" option in service "services": "SEARXNG_BASE_URL=https://${SEARXNG_HOSTNAME:-localhost}/"
是不是ip除了问题呢

realpath() of /etc/searxng/uwsgi.ini failed: Permission denied [core/utils.c line 3662]

could not start service by docker-compose.

os: debian 4.19.71-arm64-desktop
docker: Docker version 19.03.8, build e781081667
docker-compose: Docker Compose version v2.26.1

Attaching to freeask-backend-1, freeask-chatgpt-next-web-1, freeask-freegpt35-1, freeask-searxng-1
freeask-searxng-1           | SearXNG version 2024.4.8+f1a148f53
freeask-searxng-1           | Use existing /etc/searxng/uwsgi.ini
freeask-searxng-1           | Use existing /etc/searxng/settings.yml
freeask-searxng-1           | Listen on 0.0.0.0:8080
freeask-searxng-1           | realpath() of /etc/searxng/uwsgi.ini failed: Permission denied [core/utils.c line 3662]
freeask-searxng-1 exited with code 1
freeask-freegpt35-1         | 💡 Server is running at http://localhost:3040
freeask-freegpt35-1         | 
freeask-freegpt35-1         | 🔗 Base URL: http://localhost:3040/v1
freeask-freegpt35-1         | 🔗 ChatCompletion Endpoint: http://localhost:3040/v1/chat/completions
freeask-freegpt35-1         | 
freeask-freegpt35-1         | 📝 Original TS Source By: Pawan.Krd
freeask-freegpt35-1         | 📝 Modified Into JavaScript By: Adam
freeask-freegpt35-1         | 

在 debian 12 上报错

ERROR: Invalid interpolation format for "searxng" option in service "services": "SEARXNG_BASE_URL=https://${SEARXNG_HOSTNAME:-localhost}/"

谁知道是怎么回事吗?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.