To do what you are requesting is pretty easy, you can just launch the server and use the client directly. The code would look like this:
```python
from r2r import R2RClient
base_url = "http://localhost:8000" # or other
client = R2RClient(base_url)
# load my_file_paths
...
response = client.ingest_files(file_paths=my_file_paths)
# optionally set metadata, document ids, etc.. [https://r2r-docs.sciphi.ai/api-reference/endpoint/ingest_fil...]
```
I have an AI service that I need to add RAG too, running as a direct Python server, and I can see running this as a second service being very useful. Much appreciated.
To do what you are requesting is pretty easy, you can just launch the server and use the client directly. The code would look like this:
```python
from r2r import R2RClient
base_url = "http://localhost:8000" # or other
client = R2RClient(base_url)
# load my_file_paths
...
response = client.ingest_files(file_paths=my_file_paths)
# optionally set metadata, document ids, etc.. [https://r2r-docs.sciphi.ai/api-reference/endpoint/ingest_fil...]
```