langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
38.21k stars 5.21k forks source link

Add Google Custom Search JSON API Tool #5121

Closed akan closed 1 month ago

akan commented 1 month ago

Self Checks

1. Is this request related to a challenge you're experiencing?

Title: Add Google Custom Search JSON API Tool for Enhanced Precision in Search

Post: I'd like to propose the integration of the Google Custom Search JSON API into the tools available within Dify. This feature addresses a challenge I've encountered where there is a need for more precise and targeted search capabilities beyond what is currently offered.

2. Describe the feature you'd like to see

The feature I'd like to see is the addition of the Google Custom Search JSON API as a tool option within Dify. This would allow users to perform more targeted and precise searches, effectively turning it into a mini knowledge base.

3. How will this feature improve your workflow or experience?

The integration of the Google Custom Search JSON API will significantly improve the search precision within Dify, allowing for more accurate information retrieval. This enhancement will streamline the workflow by providing more reliable search results, thus saving time and improving the overall user experience.

4. Additional context or comments

No response

5. Can you help us with this feature?

akan commented 1 month ago

I've test http request. but got Run failed: Node HTTP 请求 run failed: The handshake operation timed out docker-nginx-1 | 172.27.0.1 - - [14/Jun/2024:02:12:27 +0000] "POST /console/api/apps/77f89866-9b37-4987-ad9f-f65b617b7702/advanced-chat/workflows/draft/run HTTP/1.1" 200 13271 "http://39.105.139.233:7078/app/77f89866-9b37-4987-ad9f-f65b617b7702/workflow" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36" "-" docker-ssrf_proxy-1 | 1718331147.604 180478 172.27.0.8 TCP_TUNNEL/200 39 CONNECT www.googleapis.com:443 - HIER_DIRECT/172.217.160.106 - docker-db-1 | 2024-06-14 02:12:38.999 UTC [23] LOG: checkpoint starting: time docker-db-1 | 2024-06-14 02:12:41.958 UTC [23] LOG: checkpoint complete: wrote 30 buffers (0.2%); 0 WAL file(s) added, 0 removed, 0 recycled; write=2.915 s, sync=0.020 s, total=2.959 s; sync files=26, longest=0.007 s, average=0.001 s; distance=146 kB, estimate=146 kB

akan commented 1 month ago

It is ok when us serp.

akan commented 1 month ago

Now I may config ssrf_proxy on the right way. but steel got error: docker-ssrf_proxy-1 | 1718334435.769 163733 172.27.0.8 TCP_TUNNEL/200 39 CONNECT www.googleapis.com:443 - HIER_DIRECT/172.217.160.106 - Run failed: Node HTTP 请求 run failed: [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1007)