MCPcopy Create free account
hub / github.com/SensAI-PT/RAGMeUp / getDocuments

Function getDocuments

ui/node-react/client/src/api.js:165–169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

163
164// Documents
165export async function getDocuments() {
166 const res = await fetch(`${API_BASE}/documents`, { headers: getHeaders() });
167 if (!res.ok) throw new Error('Failed to fetch documents');
168 return res.json();
169}
170
171export async function uploadDocuments(files, dataset) {
172 const formData = new FormData();

Callers 1

DocumentsPage.jsFile · 0.85

Calls 1

getHeadersFunction · 0.85

Tested by

no test coverage detected