Example project using the Exa Python SDK.
find_similar_and_contents
function to find similar links and get contents from each link. The input is simply a URL, https://thrift.house and we set num_results=10
(this is customizable up to thousands of results in Exa).
By specifying highlights={"num_sentences":2}
for each search result, Exa will also identify and return a two sentence excerpt from the content that’s relevant to our query. This will allow us to quickly understand each website that we find.
category="company"
in the SDK will search across a curated, larger companies dataset - if you’re interested in this, let us know at [email protected]!
Now that we have 10 companies we want to dig into further, let’s do some research on each of these companies.
search_and_contents
function, and specify type="keyword"
and num_results=5
. This will give me 5 websites about each company.