Minor Fix in the example docs (#383)
This commit is contained in:
parent
525a76b836
commit
68f3da12ea
|
@ -35,7 +35,7 @@ Let's build this system. 🛠️
|
||||||
|
|
||||||
Run the line below to install required dependencies:
|
Run the line below to install required dependencies:
|
||||||
```bash
|
```bash
|
||||||
!pip install smolagents pandas langchain langchain-community sentence-transformers datasets rank_bm25 --upgrade -q
|
!pip install smolagents pandas langchain langchain-community sentence-transformers datasets python-dotenv rank_bm25 --upgrade -q
|
||||||
```
|
```
|
||||||
To call the HF Inference API, you will need a valid token as your environment variable `HF_TOKEN`.
|
To call the HF Inference API, you will need a valid token as your environment variable `HF_TOKEN`.
|
||||||
We use python-dotenv to load it.
|
We use python-dotenv to load it.
|
||||||
|
|
|
@ -27,7 +27,18 @@ A standard text-to-sql pipeline is brittle, since the generated SQL query can be
|
||||||
|
|
||||||
Let’s build this agent! 💪
|
Let’s build this agent! 💪
|
||||||
|
|
||||||
First, we setup the SQL environment:
|
Run the line below to install required dependencies:
|
||||||
|
```bash
|
||||||
|
!pip install smolagents python-dotenv sqlalchemy --upgrade -q
|
||||||
|
```
|
||||||
|
To call the HF Inference API, you will need a valid token as your environment variable `HF_TOKEN`.
|
||||||
|
We use python-dotenv to load it.
|
||||||
|
```py
|
||||||
|
from dotenv import load_dotenv
|
||||||
|
load_dotenv()
|
||||||
|
```
|
||||||
|
|
||||||
|
Then, we setup the SQL environment:
|
||||||
```py
|
```py
|
||||||
from sqlalchemy import (
|
from sqlalchemy import (
|
||||||
create_engine,
|
create_engine,
|
||||||
|
|
Loading…
Reference in New Issue