Skip to content

Commit deb686a

Browse files
author
Preetam Joshi
committed
Improvements to the documentation and the example notebook.
1 parent d18e354 commit deb686a

File tree

2 files changed

+20
-15
lines changed

2 files changed

+20
-15
lines changed

README.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,38 +29,34 @@ available in a future release.
2929
| Coherence | <span style="font-size: 24px;">⌛</span> |
3030
| Sensitive Data (PII/PHI/PCI) | <span style="font-size: 24px;">⌛</span> |
3131

32-
## Product
3332

34-
Follow these steps to use the product:
33+
## Getting Started
34+
35+
AIMon supports asynchronous instrumentation or synchronous detections for the metrics mentioned above. Use these steps
36+
to get started with using the AIMon SDK and the product.
3537

3638
- Step 1: Get access to the beta product by joining the wait list on our [website](https://aimon.ai/) or by requesting
3739
it on [Slack](https://join.slack.com/t/generativeair/shared_invite/zt-2jab62lsj-xM9a_s~Qweu8lf3YS2cANg) or
3840
sending an email to info@aimon.ai
3941
- Step 2: Install the AIMon SDK by running `pip install aimon` in your terminal.
40-
- Step 3: Refer to the [sample notebook](notebooks/aimon_sdk_langchain_summarization.ipynb) for an example of how to instrument an LLM application using our SDK.
42+
- Step 3: Refer to the [sample notebook](examples/notebooks/aimon_sdk_langchain_summarization.ipynb) for an example of how to instrument an LLM application asynchronously using the SDK.
43+
You can also refer to the sample [streamlit application](examples/langchain_summarization_app.py) for an example for synchronous detections.
4144

4245
<div align="center">
4346
<img src="images/product_apps_page.png" alt="AIMon Product">
4447
</div>
4548

46-
## API
49+
### API
4750

48-
Steps to use the API:
51+
AIMon detections can be accessed via REST APIs. Here are the steps to access the API:
4952

5053
- Step 1: Get your API key by requesting it on our [Slack](https://join.slack.com/t/generativeair/shared_invite/zt-2jab62lsj-xM9a_s~Qweu8lf3YS2cANg) or sending an email
5154
to info@aimon.ai
52-
- Step 2: You can try the API using either of these methods
53-
- [OPTION 1] Try the simple langchain summarization application that is augmented with AIMon Rely to detect
54-
hallucinations at the sentence level.
55-
- Step 1: Run `pip install -r examples/requirements.txt && pip install aimon`
56-
- Step 2: Run `streamlit run examples/langchain_summarization_app.py`
57-
- [OPTION 2] Download the Postman collection specified below to access the API
58-
- Model Hallucination (Passage and Sentence
59-
Level): [Postman Collection](examples/postman_collections)
55+
- Step 2: Download the [Postman Collection](examples/postman_collections) specified below to access the API
6056

6157
### Sandbox
6258

63-
You can play with a [Sandbox](https://aimon.ai/tryproduct) that is available on our website.
59+
You can try our [Sandbox](https://aimon.ai/tryproduct) that is available on our website to try our Hallucination detection models quickly.
6460

6561
## Benchmarks
6662

examples/notebooks/aimon_sdk_langchain_summarization.ipynb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,16 @@
118118
"The below example uses Langchain to do summarization of documents using OpenAI."
119119
]
120120
},
121+
{
122+
"cell_type": "code",
123+
"execution_count": null,
124+
"id": "11e5fc3a-da44-4fda-b29a-a691569487d5",
125+
"metadata": {},
126+
"outputs": [],
127+
"source": [
128+
"openai_api_key = \"YOUR API KEY HERE\""
129+
]
130+
},
121131
{
122132
"cell_type": "code",
123133
"execution_count": 6,
@@ -131,7 +141,6 @@
131141
"from langchain.llms.openai import OpenAI\n",
132142
"from langchain.chains.summarize import load_summarize_chain\n",
133143
"\n",
134-
"openai_api_key = \"YOUR API KEY HERE\"\n",
135144
"def run_application(source_text, prompt=None, user_query=None, eval_run=None):\n",
136145
" # Split the source text\n",
137146
" text_splitter = CharacterTextSplitter()\n",

0 commit comments

Comments
 (0)