Skip to content

Conversation

@hwchase17
Copy link
Contributor

No description provided.

timothyasp and others added 2 commits February 20, 2023 21:05
There's a lot of valuable data that can come from SerpAPI, more than just a single snippet or answer. Add a `results` method which returns the raw api response from serpapi. It's very useful grabbing snippets and the answer box for crafting context summaries in quality checking answers for recent or more obscure information. --- I did make a proactive move to move `SerpApiWrapper` into `langchain.utilities` since that was where the other Serp API utilities all were, and it seemed like it might have been a legacy thing. I tested that backwards compatibility was maintained with `SerpApiChain`. Also did a small amount of refactoring to bring in the `process_response` method into the class so that it was more in line with what I saw with the other utilities. If this is out of scope or not what you want, let me know, I'm fine pulling those changes out and just including the `results` method.
@hwchase17 hwchase17 merged commit 44c8d8a into master Feb 21, 2023
@hwchase17 hwchase17 deleted the harrison/serpapi-wrapper branch February 21, 2023 05:15
@blob42 blob42 mentioned this pull request Feb 21, 2023
zachschillaci27 pushed a commit to zachschillaci27/langchain that referenced this pull request Mar 8, 2023
Co-authored-by: Tim Asp <707699+timothyasp@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants