ragflow通过python实现

文章目录

    • 1、创建API KEY
    • 2、python脚本

ragflow搭建参考文章
Win10系统Docker+DeepSeek+ragflow搭建本地知识

1、创建API KEY

ragflow通过python实现_第1张图片

2、python脚本

import requests
import json
import time
# 创建知识库
def create_dataset(api_key, name, embedding_model,
                    permission="team", chunk_method="naive", language="Chinese", parser_config=None,avatar=None, description=None):
    url = f"http://{address}/api/v1/datasets"
    headers = {
        "Content-Type": "application/json",
 

你可能感兴趣的:(Python君,知识库,deepseek,ragflow)