How do i query my uploaded documents?

I’ve uploaded my docs. how do i query my uploaded documents?

To query your uploaded documents in AIHub, the exact steps can depend on whether you’re using a specific tool within AIHub (like a chatbot interface or an API). However, here are general steps that apply to most use cases within AIHub:


**If you’re using AIHub’s Chatbot Interface **

  1. Upload your documents
    Use the upload interface in your AIHub workspace to add your PDFs, Word docs, or text files.
  2. Wait for indexing
    AIHub will process and index the documents. This may take a moment depending on the size and type.
  3. Ask questions in natural language
    Once indexed, simply type your question in the chat like:
  • “What are the main points in the uploaded document?”
  • “Summarize the Q1 financials from the report I uploaded.”
  • *“Who is mentioned in the contract?”*The AI will retrieve relevant excerpts or generate answers based on your uploaded content.

If you’re using AIHub’s API or Developer Tools:

  1. Upload documents via API or Dashboard
  • Use the API endpoint to upload files.
  • Alternatively, drag and drop into the dashboard.
  1. Use the search or query API
  • After documents are uploaded, use vector search or embedding-based queries.
  • Query example (pseudocode):

json

CopyEdit

{
  "query": "What is the payment term in the uploaded contract?",
  "top_k": 3
}
  1. Receive relevant context
  • The system returns matching document chunks, which you can pass to a language model to generate final answers.

Tips for Effective Queries:

  • Be specific in your question.
  • Ask follow-ups to drill down further.
  • Use the document title if needed: “In the document titled ‘Lease Agreement’…”