mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Miscellaneous updates (#4228)
### What problem does this PR solve? ### Type of change - [x] Documentation Update
This commit is contained in:
@ -883,6 +883,10 @@ Failure:
|
||||
|
||||
---
|
||||
|
||||
## CHUNK MANAGEMENT WITHIN DATASET
|
||||
|
||||
---
|
||||
|
||||
### Add chunk
|
||||
|
||||
**POST** `/api/v1/datasets/{dataset_id}/documents/{document_id}/chunks`
|
||||
@ -936,9 +940,7 @@ Success:
|
||||
"content": "ragflow content",
|
||||
"create_time": "2024-10-16 08:05:04",
|
||||
"create_timestamp": 1729065904.581025,
|
||||
"dataset_id": [
|
||||
"c7ee74067a2c11efb21c0242ac120006"
|
||||
],
|
||||
"dataset_id": "c7ee74067a2c11efb21c0242ac120006",
|
||||
"document_id": "5c5999ec7be811ef9cab0242ac120005",
|
||||
"id": "d78435d142bd5cf6704da62c778795c5",
|
||||
"important_keywords": []
|
||||
|
||||
@ -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?")
|
||||
|
||||
Reference in New Issue
Block a user