import { fetchWithAuth } from './apiClient';

/**
 * Upload a document to the RAG system.
 */
export const uploadDocument = async (file) => {
  const formData = new FormData();
  formData.append("file", file);

  return await fetchWithAuth('/rag/documents', {
    method: "POST",
    body: formData
  });
};
