knowledge API requests document list only returning like 20 records while total 19000+ #15570
terrysun1216
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Self Checks
Content
import requests
DATASET_ID = ""
API_KEY = ""
url = f"http://localhost/v1/datasets/{DATASET_ID}/documents"
headers = {
"Authorization": f"Bearer {API_KEY}"
}
try:
response = requests.get(url, headers=headers)
except requests.RequestException as e:
print(f"request error: {e}")
it will always return the latst 20 records while the knowledge base has 19k more files. How to return all files list?
Beta Was this translation helpful? Give feedback.
All reactions