Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Search vector store #559

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 4 commits into from
Apr 15, 2025
Merged

Conversation

lukalocniskar
Copy link
Contributor

What:

  • Bug Fix
  • New Feature

Description:

Added support for missing searching vector stores with the OpenAI API via the POST endpoint /vector_stores/{vector_store_id}/search as described in OpenAI Search vector store docs page. This implementation allows users to search a vector store for relevant chunks based on both a text query and optional file attributes filter.

Key features of this implementation:

  • Support for text and hybrid semantic queries
  • File attribute filtering to refine search results
  • Pagination support through has_more and next_page fields
  • Detailed response objects including file metadata and content chunks
  • Comprehensive type safety with proper response typing

@lukalocniskar lukalocniskar marked this pull request as ready for review April 14, 2025 21:42
Copy link
Collaborator

@iBotPeaches iBotPeaches left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! Everything passes. Just setting up my vector store so I can give this one real test to be sure.

README.md Outdated Show resolved Hide resolved
@iBotPeaches iBotPeaches merged commit 6f5861f into openai-php:main Apr 15, 2025
10 checks passed
@iBotPeaches
Copy link
Collaborator

thanks!

@iBotPeaches iBotPeaches added the enhancement New feature or request label Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.