Skip to content

Fix: improve retrieval API #6744

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 24, 2025
Merged

Conversation

Woody-Hu
Copy link
Contributor

@Woody-Hu Woody-Hu commented Apr 2, 2025

What problem does this PR solve?

Get the highlight parameter from the request to keep consistency with the document

  • Method: POST
  • URL: /api/v1/retrieval
  • Headers:
    • 'content-Type: application/json'
    • 'Authorization: Bearer <YOUR_API_KEY>'
  • Body:
    • "question": string
    • "dataset_ids": list[string]
    • "document_ids": list[string]
    • "page": integer
    • "page_size": integer
    • "similarity_threshold": float
    • "vector_similarity_weight": float
    • "top_k": integer
    • "rerank_id": string
    • "keyword": boolean
    • "highlight": boolean

Type of change

  • Bug Fix (non-breaking change which fixes an issue)

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. 🐞 bug Something isn't working, pull request that fix bug. 💞 feature Feature request, pull request that fullfill a new feature. labels Apr 2, 2025
@KevinHuSh KevinHuSh added the ci Continue Integration label Apr 3, 2025
@asiroliu asiroliu added ci Continue Integration and removed ci Continue Integration labels Apr 3, 2025
@Woody-Hu Woody-Hu changed the title Feat: improve retrieval API Fix: improve retrieval API Apr 15, 2025
@KevinHuSh KevinHuSh merged commit 0b460a9 into infiniflow:main Apr 24, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working, pull request that fix bug. ci Continue Integration 💞 feature Feature request, pull request that fullfill a new feature. size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants