-
Notifications
You must be signed in to change notification settings - Fork 1.4k
feat(cosmos): add semantic rerank API #37981
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
Changes from 19 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
e9996a7
feat(cosmos): add semantic rerank API for Cosmos DB Inference Service
6205899
fix: add rerank to CSpell dictionary for cosmos API review
3372c72
fix: add named snippet for semanticRerank example
c364a51
Add semantic rerank integration test
b543c0b
fix: correct RerankScore.document type and update integration tests
d3d8848
fix: update integration tests with self-contained FTS+rerank e2e test
6cef892
fix: disable fakeTimers in integration config and simplify test 3
66f912a
Revert global fakeTimers override, use vi.useRealTimers() locally; st…
d0f5c75
Skip e2e integration test that requires pre-existing DB and container
d0bd299
Fix TSDoc escape errors in integration test JSDoc
8e4a686
Apply prettier formatting to integration tests
fa52444
Skip all semantic rerank integration tests
c9362d8
fix: address PR review comments for semantic rerank feature
Copilot 0b39a3d
fix: use cached httpClient, ErrorResponse, remove unnecessary timer h…
4a9ca54
fix: update JSDoc snippet to use proper guard for rerankScores
327f057
refactor: remove inferenceEndpoint from CosmosClientOptions
26fc878
chore: remove accidentally committed .tshy build artifacts
783699b
fix: resolve no-shadow lint error in semanticRerank.spec.ts
3a833d7
feat: add documentType/targetPaths options and structured error parsing
ad6a614
refactor: rename rerankContext to context, convert SemanticRerankOpti…
ce691bb
refactor(cosmos): move inference constants, use StatusCodes, extract …
36c5605
refactor(cosmos): add MultipleChoices (300) to StatusCodes, use in In…
fed6fed
chore(cosmos): regenerate API review after constants and statusCodes …
45acf97
feat(cosmos): add inferenceEndpoint to CosmosClientOptions
ebe2235
feat(cosmos): add enablePreviewFeatures to CosmosClientOptions
f2178d0
refactor(cosmos): address semantic rerank PR review comments
ed78516
chore(cosmos): remove rerank entries from cspell dictionary
6a24a83
refactor(cosmos): simplify InferenceService.parseResponse error handling
4e770da
refactor(cosmos): finalize semantic rerank review follow-ups
3ce69e2
refactor(cosmos): structured error for semantic rerank failures
4e2e86b
feat(cosmos): add diagnostics to semantic rerank
ec48e18
feat(cosmos): nest semanticRerank preview config under enablePreviewF…
c4c335e
feat(cosmos): add configurable semantic rerank inference request timeout
4f55fb7
Merge remote-tracking branch 'origin/main' into feature/cosmos-semant…
caf0e7e
feat(cosmos): mark semantic rerank public APIs as @beta
869e40c
feat(cosmos): use nullish coalescing assignment for inference service…
40911f5
docs(cosmos): mark ClientContext.semanticRerank as @hidden
102b7f1
chore(cosmos): whitelist rerank/Rerank in cosmos cspell override
94b60dc
refactor(cosmos): rename SemanticRerankPreviewConfig to SemanticReran…
f3a2dc6
style(cosmos): apply prettier formatting to InferenceService.ts
013f307
docs(cosmos): add Preview features section to README
ebcb598
test(cosmos): add diagnostics coverage for semantic rerank
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -320,6 +320,8 @@ | |
| "Parition", | ||
| "colls", | ||
| "pkranges", | ||
| "rerank", | ||
| "Rerank", | ||
| "sproc", | ||
| "sprocs", | ||
| "udfs", | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.