Skip to content

Commit 0b6af2a

Browse files
authored
Apply suggestions from code review
1 parent 0fe8bca commit 0b6af2a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pages/generative-apis/reference-content/integrating-generative-apis-with-popular-tools.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ LangChain is a popular library for building AI applications. Scaleway's Generati
7575
## LlamaIndex (advanced RAG applications)
7676

7777
LlamaIndex is an open-source framework for building Large Language Models (LLMs) based applications, especially optimizing RAG (Retrieval Augmented Generation) pipelines.
78-
To use the LlamaIndex framework with Scaleway's Generative APIs, first install the required dependencies:
78+
1. Install the required dependencies to use the LlamaIndex framework with Scaleway's Generative APIs:
7979
```bash
8080
pip install llama-index-llms-openai-like
8181
```
8282

83-
Then, create a file `main.py` and add the following code to it to configure the `OpenAILike` client and your secret key:
83+
2. Create a file `main.py` and add the following code to it to configure the `OpenAILike` client and your secret key:
8484
```python
8585
from llama_index.llms.openai_like import OpenAILike
8686
from llama_index.core.llms import ChatMessage
@@ -99,13 +99,13 @@ llm = OpenAILike(
9999
Make sure to replace `<API secret key>` with your actual API key.
100100
</Message>
101101

102-
You can then interact with the LLM by sending messages to the model with the following code:
102+
3. You can then interact with the LLM by sending messages to the model with the following code:
103103
```python
104104
response = llm.chat([ChatMessage("Could you tell me about Scaleway please ?")])
105105
print(response)
106106
```
107107

108-
Finally, run `main.py`:
108+
4. Finally, run `main.py`:
109109
```python
110110
python main.py
111111
```

0 commit comments

Comments
 (0)