forked from langchain-ai/langchain
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
exa[patch]: update readme (langchain-ai#18047)
- Loading branch information
1 parent
a5650ab
commit 19f5da6
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,28 @@ | ||
# langchain-exa | ||
|
||
This package contains the LangChain integrations for Exa Cloud generative models. | ||
|
||
## Installation | ||
|
||
```bash | ||
pip install -U langchain-exa | ||
``` | ||
|
||
## Exa Search Retriever | ||
|
||
You can retrieve search results as follows | ||
|
||
```python | ||
from langchain_exa import ExaSearchRetriever | ||
|
||
exa_api_key = "YOUR API KEY" | ||
|
||
# Create a new instance of the ExaSearchRetriever | ||
exa = ExaSearchRetriever(exa_api_key=exa_api_key) | ||
|
||
# Search for a query and save the results | ||
results = exa.get_relevant_documents(query="What is the capital of France?") | ||
|
||
# Print the results | ||
print(results) | ||
``` |