huggingface / huggingface/agents-course
[QUESTION] Clarify Payment Required for completing Unit 2 notebooks
- Dominant language
- MDX
- Stars
- 32.6k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
For the notebook for [components.ipynb]() I ran the `IngestionPipeline` function as follows:
```py
from llama_index.embeddings.huggingface_api import HuggingFaceInferenceAPIEmbedding
from llama_index.core.node_parser import SentenceSplitter
from llama_index.core.ingestion import IngestionPipeline
# create the pipeline with transformations
pipeline = IngestionPipeline(
transformations=[
SentenceSplitter(),
HuggingFaceInferenceAPIEmbedding(model_name="BAAI/bge-small-en-v1.5"),
]
)
# run the pipeline sync or async
nodes = await pipeline.arun(documents=documents[:10])
nodes
```
I got the following outcome and looks like this .ipynb can't be executed without a payment route:
```python
---------------------------------------------------------------------------
ClientResponseError Traceback (most recent call last)
[](https://localhost:8080/#) in ()
12
13 # run the pipeline sync or async
---> 14 nodes = await pipeline.arun(documents=documents[:10])
15 nodes
12 frames
[/usr/local/lib/python3.11/dist-packages/aiohttp/client_reqrep.py](https://localhost:8080/#) in raise_for_status(self)
1159 self.release()
1160
-> 1161 raise ClientResponseError(
1162 self.request_info,
1163 self.history,
ClientResponseError: 402, message='Payment Required', url='https://api-inference.huggingface.co/pipeline/feature-extraction/BAAI/bge-small-en-v1.5'
```
is there any free and open alternatives?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.