Skip to content

✨ add RAG search API#213

Open
sebastianMindee wants to merge 2 commits into
mainfrom
add-rag-search
Open

✨ add RAG search API#213
sebastianMindee wants to merge 2 commits into
mainfrom
add-rag-search

Conversation

@sebastianMindee

@sebastianMindee sebastianMindee commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

Description

Note: experimental - Claude Opus 4.8-generated

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Requires a change to the official Guide documentation.

@sebastianMindee
sebastianMindee requested a review from ianardee July 23, 2026 15:20
Comment on lines +29 to +38
public function __toString(): string
{
return implode("\n", array_merge(
[
'Models',
'######',
(string) $this->models,
],
$this->paginationLines()
));

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The logic is flipped, the base method should do the implode, child method should send the array.

Comment thread src/V2/Parsing/Search/RagDocument.php Outdated
Comment on lines +64 to +74
private function parseDate(?string $dateString): ?DateTimeImmutable
{
if (empty($dateString)) {
return null;
}
try {
return new DateTimeImmutable($dateString);
} catch (Exception) {
return null;
}
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

this method should be reused across the SDK, look to put it in a date parsing or utility class in the Parsing namespace.

Comment thread src/V2/Client.php Outdated
Comment on lines +181 to +184
public function searchModels(
ModelSearchParameters|string|null $modelName = null,
?string $modelType = null
): ModelSearchResponse {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

that is pretty horrible. ask to see if there are better alternatives

@sebastianMindee
sebastianMindee requested a review from ianardee July 23, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants