|
1 | 1 | {
|
2 |
| - "cells": [ |
3 |
| - { |
4 |
| - "cell_type": "markdown", |
5 |
| - "metadata": {}, |
6 |
| - "source": [ |
7 |
| - "# Exa\n", |
8 |
| - "\n", |
9 |
| - ">[Exa](https://exa.ai/) is a knowledge API for AI and developers.\n", |
10 |
| - ">\n", |
11 |
| - "\n", |
12 |
| - "## Installation and Setup\n", |
13 |
| - "\n", |
14 |
| - "`Exa` integration exists in its own [partner package](https://pypi.org/project/langchain-exa/). You can install it with:" |
15 |
| - ] |
| 2 | + "cells": [ |
| 3 | + { |
| 4 | + "cell_type": "markdown", |
| 5 | + "metadata": {}, |
| 6 | + "source": [ |
| 7 | + "# Exa\n", |
| 8 | + "\n", |
| 9 | + ">[Exa](https://exa.ai/) is a knowledge API for AI and developers.\n", |
| 10 | + ">\n", |
| 11 | + "\n", |
| 12 | + "## Installation and Setup\n", |
| 13 | + "\n", |
| 14 | + "`Exa` integration exists in its own [partner package](https://pypi.org/project/langchain-exa/). You can install it with:" |
| 15 | + ] |
| 16 | + }, |
| 17 | + { |
| 18 | + "cell_type": "code", |
| 19 | + "execution_count": null, |
| 20 | + "metadata": {}, |
| 21 | + "outputs": [], |
| 22 | + "source": [ |
| 23 | + "%pip install -qU langchain-exa" |
| 24 | + ] |
| 25 | + }, |
| 26 | + { |
| 27 | + "cell_type": "markdown", |
| 28 | + "metadata": {}, |
| 29 | + "source": [ |
| 30 | + "In order to use the package, you will also need to set the `EXA_API_KEY` environment variable to your Exa API key.\n", |
| 31 | + "\n", |
| 32 | + "## Retriever\n", |
| 33 | + "\n", |
| 34 | + "You can use the [`ExaSearchRetriever`](/docs/integrations/tools/exa_search#using-exasearchretriever) in a standard retrieval pipeline. You can import it as follows.\n", |
| 35 | + "\n", |
| 36 | + "See a [usage example](/docs/integrations/tools/exa_search).\n" |
| 37 | + ] |
| 38 | + }, |
| 39 | + { |
| 40 | + "cell_type": "code", |
| 41 | + "execution_count": 2, |
| 42 | + "metadata": { |
| 43 | + "id": "y8ku6X96sebl" |
| 44 | + }, |
| 45 | + "outputs": [], |
| 46 | + "source": [ |
| 47 | + "from langchain_exa import ExaSearchRetriever" |
| 48 | + ] |
| 49 | + }, |
| 50 | + { |
| 51 | + "cell_type": "markdown", |
| 52 | + "metadata": {}, |
| 53 | + "source": "## Tools\n\nYou can use Exa as an agent tool as described in the [Exa tool calling docs](/docs/integrations/tools/exa_search#use-within-an-agent).\n\nSee a [usage example](/docs/integrations/tools/exa_search).\n\n### ExaFindSimilarResults\n\nA tool that queries the Metaphor Search API and gets back JSON." |
| 54 | + }, |
| 55 | + { |
| 56 | + "cell_type": "code", |
| 57 | + "execution_count": null, |
| 58 | + "metadata": {}, |
| 59 | + "outputs": [], |
| 60 | + "source": [ |
| 61 | + "from langchain_exa.tools import ExaFindSimilarResults" |
| 62 | + ] |
| 63 | + }, |
| 64 | + { |
| 65 | + "cell_type": "markdown", |
| 66 | + "metadata": {}, |
| 67 | + "source": [ |
| 68 | + "### ExaSearchResults\n", |
| 69 | + "\n", |
| 70 | + "Exa Search tool." |
| 71 | + ] |
| 72 | + }, |
| 73 | + { |
| 74 | + "cell_type": "code", |
| 75 | + "execution_count": null, |
| 76 | + "metadata": {}, |
| 77 | + "outputs": [], |
| 78 | + "source": [ |
| 79 | + "from langchain_exa.tools import ExaSearchResults" |
| 80 | + ] |
| 81 | + } |
| 82 | + ], |
| 83 | + "metadata": { |
| 84 | + "colab": { |
| 85 | + "provenance": [] |
| 86 | + }, |
| 87 | + "kernelspec": { |
| 88 | + "display_name": "Python 3 (ipykernel)", |
| 89 | + "language": "python", |
| 90 | + "name": "python3" |
| 91 | + }, |
| 92 | + "language_info": { |
| 93 | + "codemirror_mode": { |
| 94 | + "name": "ipython", |
| 95 | + "version": 3 |
| 96 | + }, |
| 97 | + "file_extension": ".py", |
| 98 | + "mimetype": "text/x-python", |
| 99 | + "name": "python", |
| 100 | + "nbconvert_exporter": "python", |
| 101 | + "pygments_lexer": "ipython3", |
| 102 | + "version": "3.10.12" |
| 103 | + } |
16 | 104 | },
|
17 |
| - { |
18 |
| - "cell_type": "code", |
19 |
| - "execution_count": null, |
20 |
| - "metadata": {}, |
21 |
| - "outputs": [], |
22 |
| - "source": [ |
23 |
| - "%pip install -qU langchain-exa" |
24 |
| - ] |
25 |
| - }, |
26 |
| - { |
27 |
| - "cell_type": "markdown", |
28 |
| - "metadata": {}, |
29 |
| - "source": [ |
30 |
| - "In order to use the package, you will also need to set the `EXA_API_KEY` environment variable to your Exa API key.\n", |
31 |
| - "\n", |
32 |
| - "## Retriever\n", |
33 |
| - "\n", |
34 |
| - "You can use the [`ExaSearchRetriever`](/docs/integrations/tools/exa_search#using-exasearchretriever) in a standard retrieval pipeline. You can import it as follows.\n", |
35 |
| - "\n", |
36 |
| - "See a [usage example](/docs/integrations/tools/exa_search).\n" |
37 |
| - ] |
38 |
| - }, |
39 |
| - { |
40 |
| - "cell_type": "code", |
41 |
| - "execution_count": 2, |
42 |
| - "metadata": { |
43 |
| - "id": "y8ku6X96sebl" |
44 |
| - }, |
45 |
| - "outputs": [], |
46 |
| - "source": [ |
47 |
| - "from langchain_exa import ExaSearchRetriever" |
48 |
| - ] |
49 |
| - }, |
50 |
| - { |
51 |
| - "cell_type": "markdown", |
52 |
| - "metadata": {}, |
53 |
| - "source": [ |
54 |
| - "## Tools\n", |
55 |
| - "\n", |
56 |
| - "You can use Exa as an agent tool as described in the [Exa tool calling docs](/docs/integrations/tools/exa_search#using-the-exa-sdk-as-langchain-agent-tools).\n", |
57 |
| - "\n", |
58 |
| - "See a [usage example](/docs/integrations/tools/exa_search).\n", |
59 |
| - "\n", |
60 |
| - "### ExaFindSimilarResults\n", |
61 |
| - "\n", |
62 |
| - "A tool that queries the Metaphor Search API and gets back JSON." |
63 |
| - ] |
64 |
| - }, |
65 |
| - { |
66 |
| - "cell_type": "code", |
67 |
| - "execution_count": null, |
68 |
| - "metadata": {}, |
69 |
| - "outputs": [], |
70 |
| - "source": [ |
71 |
| - "from langchain_exa.tools import ExaFindSimilarResults" |
72 |
| - ] |
73 |
| - }, |
74 |
| - { |
75 |
| - "cell_type": "markdown", |
76 |
| - "metadata": {}, |
77 |
| - "source": [ |
78 |
| - "### ExaSearchResults\n", |
79 |
| - "\n", |
80 |
| - "Exa Search tool." |
81 |
| - ] |
82 |
| - }, |
83 |
| - { |
84 |
| - "cell_type": "code", |
85 |
| - "execution_count": null, |
86 |
| - "metadata": {}, |
87 |
| - "outputs": [], |
88 |
| - "source": [ |
89 |
| - "from langchain_exa.tools import ExaSearchResults" |
90 |
| - ] |
91 |
| - } |
92 |
| - ], |
93 |
| - "metadata": { |
94 |
| - "colab": { |
95 |
| - "provenance": [] |
96 |
| - }, |
97 |
| - "kernelspec": { |
98 |
| - "display_name": "Python 3 (ipykernel)", |
99 |
| - "language": "python", |
100 |
| - "name": "python3" |
101 |
| - }, |
102 |
| - "language_info": { |
103 |
| - "codemirror_mode": { |
104 |
| - "name": "ipython", |
105 |
| - "version": 3 |
106 |
| - }, |
107 |
| - "file_extension": ".py", |
108 |
| - "mimetype": "text/x-python", |
109 |
| - "name": "python", |
110 |
| - "nbconvert_exporter": "python", |
111 |
| - "pygments_lexer": "ipython3", |
112 |
| - "version": "3.10.12" |
113 |
| - } |
114 |
| - }, |
115 |
| - "nbformat": 4, |
116 |
| - "nbformat_minor": 4 |
| 105 | + "nbformat": 4, |
| 106 | + "nbformat_minor": 4 |
117 | 107 | }
|
0 commit comments