5 ms·
You are right that the quickstart is pretty large, we will think about how we can trim that and show only the essentials. To do what you are requesting is pret
by ocolegro 2y ago
You are right that the quickstart is pretty large, we will think about how we can trim that and show only the essentials.
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 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_files https://r2r-docs.sciphi.ai/api-reference/endpoint/ingest_fil...]
```
- vintagedave 2y agoThankyou! I appreciate that, that's a good mini-start, ie quickstart :) 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.