|
5 | 5 | [](https://opensource.org/licenses/MIT)
|
6 | 6 | [](https://github.com/psf/black)
|
7 | 7 | [](https://ds4sd.github.io/deepsearch-toolkit/)
|
| 8 | +[](https://pepy.tech/project/deepsearch-toolkit) |
8 | 9 |
|
9 | 10 | *Interact with the Deep Search platform for new knowledge explorations and discoveries*
|
10 | 11 |
|
11 | 12 | The Deep Search Toolkit is a Python SDK and CLI allowing users to interact with the Deep Search platform.
|
12 |
| -The Toolkit provides easy-to-use functionalities for several common processes such as document conversion, graph creation and querying. |
| 13 | +The Toolkit provides easy-to-use features for several common document workflows such as conversion, graph creation, and querying, including semantic retrieval and RAG. |
13 | 14 |
|
| 15 | +[Deep Search :octicons-link-external-16:](https://ds4sd.github.io/){ .md-button .md-button--primary } |
| 16 | +[Deep Search GitHub :octicons-link-external-16:](https://github.com/ds4sd/){ .md-button } |
| 17 | +[Examples :octicons-link-external-16:](https://github.com/DS4SD/deepsearch-examples){ .md-button } |
14 | 18 |
|
15 |
| -[Learn about IBM Deep Search :octicons-link-external-16:](https://ds4sd.github.io/){ .md-button } |
| 19 | +## Getting Started |
16 | 20 |
|
| 21 | +### Install |
17 | 22 |
|
18 |
| -## Quick Links |
| 23 | +=== "pip" |
19 | 24 |
|
20 |
| -[Deep Search](https://ds4sd.github.io/){ .md-button .md-button--primary } |
21 |
| -[Github](https://github.com/ds4sd/){ .md-button .md-button--primary } |
22 |
| -[Getting started](getting_started/index.md){ .md-button .md-button--primary } |
23 |
| -[Examples](https://github.com/DS4SD/deepsearch-examples){ .md-button .md-button--primary } |
| 25 | + ```shell |
| 26 | + pip install deepsearch-toolkit |
| 27 | + ``` |
24 | 28 |
|
| 29 | +=== "pipx" |
25 | 30 |
|
26 |
| -## Install the Deep Search Toolkit |
| 31 | + ```shell |
| 32 | + pipx install deepsearch-toolkit |
| 33 | + ``` |
27 | 34 |
|
28 |
| -The Deep Search Toolkit is available as a [PyPI package](https://pypi.org/project/deepsearch-toolkit/). |
29 |
| -It can be installed using the standard Python package managers like `pip`, `poetry`, etc. |
| 35 | +=== "poetry" |
30 | 36 |
|
31 |
| -### Requirements |
| 37 | + ```shell |
| 38 | + poetry add deepsearch-toolkit |
| 39 | + ``` |
32 | 40 |
|
33 |
| -Python 3.8+ |
| 41 | +### Set up your Profile |
34 | 42 |
|
35 |
| -### Install using pip |
| 43 | +After logging in to Deep Search, you can set up your profile as shown below: |
36 | 44 |
|
37 |
| -<div class="termy"> |
| 45 | +1. click on the *Toolkit / API* icon on the top-right corner |
| 46 | +2. from the *Toolkit* section, copy the command and run on your terminal |
| 47 | +3. when prompted for the API key, copy it from the *HTTP* section and complete the setup |
38 | 48 |
|
39 |
| -```console |
40 |
| -$ pip install deepsearch-toolkit |
| 49 | + |
41 | 50 |
|
42 |
| ----> 100% |
43 |
| -``` |
| 51 | +To quickly check your profile setup, run the following — your projects should be displayed: |
44 | 52 |
|
45 |
| -</div> |
| 53 | +=== "CLI" |
46 | 54 |
|
| 55 | + ```shell |
| 56 | + deepsearch cps projects list |
| 57 | + ``` |
47 | 58 |
|
48 |
| -### Start using the toolkit |
| 59 | +=== "Python" |
49 | 60 |
|
| 61 | + ```python |
| 62 | + import deepsearch as ds |
| 63 | + api = ds.CpsApi.from_env() |
| 64 | + print([p.name for p in api.projects.list()]) |
| 65 | + ``` |
50 | 66 |
|
51 |
| -<div class="termy"> |
| 67 | +!!! info "Multi-profile support" |
52 | 68 |
|
53 |
| -```console |
54 |
| -// Set up a profile, see <a href="./guide/configuration#profiles">profiles</a>. |
55 |
| -$ deepsearch profile config |
56 |
| -... |
| 69 | + You can set up multiple profiles, e.g. for different deployments. For details on managing profiles, check |
| 70 | + [Profiles](./guide/configuration.md#profiles). |
57 | 71 |
|
58 |
| -// Convert a document |
59 |
| -// for more details, see <a href="https://ds4sd.github.io/deepsearch-toolkit/guide/convert_doc/">document conversion</a>. |
60 |
| -$ deepsearch documents convert -p 1234567890abcdefghijklmnopqrstvwyz123456 -u https://arxiv.org/pdf/2206.00785.pdf |
61 |
| -Submitting input: : 100%|██████████████████████████████| 1/1 [00:01<00:00, 1.52s/it] |
62 |
| -Converting input: : 100%|██████████████████████████████| 1/1 [00:33<00:00, 33.80s/it] |
63 |
| -Downloading result: : 100%|██████████████████████████████| 1/1 [00:01<00:00, 1.11s/it] |
64 |
| -Total online documents 1 |
65 |
| -Successfully converted documents 1 |
66 |
| -``` |
| 72 | +### Start Using the Toolkit |
67 | 73 |
|
68 |
| -</div> |
| 74 | +Check out [Deep Search Examples :octicons-link-external-16:](https://github.com/DS4SD/deepsearch-examples) for |
| 75 | +interactive notebooks showcasing various common usage scenarios and find inspiration on |
| 76 | +how to make the most out of your own documents. |
0 commit comments