This repository has been archived by the owner on Aug 3, 2023. It is now read-only.
Extract web search data #367
joelrorseth
started this conversation in
General
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm hoping to extract data related to Bing Chat's use of the regular Bing Search engine. Specifically, I'd like to extract its reformulated query (i.e. often Bing Chat reformulates your natural language prompt into "Searching for: < Reformulated query >"), as well as the search results that are retrieved from regular Bing Search before answering the original prompt. I wouldn't have assumed that the latter would be returned by the Sydney API (since Bing Search results are not explicitly shown in the Bing Chat UI), however it looks like both of these data points are in fact returned in the Edge UI.
Immediately after ChatHub connection sends its usual initial "requestId" message, it sends a message that contains the reformulated query. In the following example, I followed up my original prompt for "who is donald trump" with "what are his achievements", which yields the following message:
Then, immediately following this message, ChatHub sends a message containing the abridged search results retrieved by Bing Search. Here is a partial example for the prompt "who is bill gates":
If you parse "hiddenText" here, it seems to be an object with two keys: "fact_results" and "web_search_results". "fact_results" is sometimes omitted, leaving only "web_search_results". Here is the abridged parse for this example:
I experimented with
_ChatHub.ask_stream
, but it doesn't appear that either of the above messages are received by EdgeGPT. I do see the initial "requestId" message, all the intermediary (partial) Bing Chat response messages, and the "final" message with full response, but I have not seen the reformulation or web results messages. Does anyone know why these messages aren't being received by EdgeGPT? Could we add support for this somehow? Thanks!Beta Was this translation helpful? Give feedback.
All reactions