infiniflow / ragflow

RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine based on deep document understanding.
https://ragflow.io
Apache License 2.0
22.88k stars 2.24k forks source link

[Question]: Is API not functioning now? #3142

Closed Dovahlore closed 2 weeks ago

Dovahlore commented 2 weeks ago

Describe your problem

im trying APIs on version dev-slim version by sending request using python, but get this

"data": null,
    "retcode": 100,
    "retmsg": "<NotFound '404: Not Found'>"

heres my code

import requests

base_url = "http://127.0.0.1/v1/api"
key = 'ragflow-Y1Y2VhYzY3OTc3YzExZWY5OThmMDI0Mm'
headers= {
    "Content-Type": "application/json",
    "Authorization": f"Bearer {key}"
}

def create_new_conversation(headers):
    url = f"{base_url}/datasets"
    print(url)
    response = requests.post(url=url, headers=headers)

    return response.json()

print(create_new_conversation(headers))

Is APIs not functioning right now

wbhob commented 2 weeks ago

I deleted my containers from docker desktop and then ran docker-compose up -d again and it worked for me. Not really sure why

wbhob commented 2 weeks ago

actually, it only seems to work on ragflow dev container. v0.13.0 does not work

Dovahlore commented 2 weeks ago

i m using ranflow-sdk module for Python and it works

Dovahlore commented 2 weeks ago

works for v0.13

yuzhichang commented 2 weeks ago

v0.13.0 contains some worked API. Other API is still on developing.

wbhob commented 1 week ago

A fresh install fixed this for me, my database was stale