Miscellaneous updates (#4228)

### What problem does this PR solve?


### Type of change


- [x] Documentation Update
This commit is contained in:
writinwaters
2024-12-25 20:21:38 +08:00
committed by GitHub
parent a3eeb5de32
commit 85511cb1fd
5 changed files with 64 additions and 11 deletions

View File

@ -1,4 +1,4 @@
from scipy.special import kwargs---
---
sidebar_position: 2
slug: /python_api_reference
---
@ -641,6 +641,10 @@ print("Async bulk parsing cancelled.")
---
## CHUNK MANAGEMENT WITHIN DATASET
---
### Add chunk
```python
@ -1436,11 +1440,11 @@ The parameters in `begin` component.
#### Examples
```python
from ragflow_sdk import RAGFlow
from ragflow_sdk import RAGFlow, Agent
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
AGENT_ID = "AGENT_ID"
session = create_session(AGENT_ID,rag_object)
session = Agent.create_session(AGENT_ID, rag_object)
```
---
@ -1513,11 +1517,11 @@ A list of `Chunk` objects representing references to the message, each containin
#### Examples
```python
from ragflow_sdk import RAGFlow,Agent
from ragflow_sdk import RAGFlow, Agent
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
AGENT_id = "AGENT_ID"
session = Agent.create_session(AGENT_id,rag_object)
session = Agent.create_session(AGENT_id, rag_object)
print("\n===== Miss R ====\n")
print("Hello. What can I do for you?")