Skip to content

Commit

Permalink
chore: second try to workaround public api check
Browse files Browse the repository at this point in the history
  • Loading branch information
KavithaSiva committed Nov 28, 2024
1 parent b6d08bf commit 08630b5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions packages/rage/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ export {
CollectionsApi,
DocumentsApi,
SearchApi,
SearchResults as VectorSearchResults,
Collection,
DocumentsListResponse
} from './client/vector/vector-api/index.js';
export {
RetrievalFederatedSearchAcrossDataRepositoriesApi,
RetrievalDataRepositoryApi,
SearchResults as RetrievalSearchResults
SearchResults
} from './client/retrieval/retrieval-api/index.js';
4 changes: 2 additions & 2 deletions sample-code/src/rage/retrieval-api.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { RetrievalFederatedSearchAcrossDataRepositoriesApi } from '@sap-ai-sdk/rage';
import type { RetrievalSearchResults } from '@sap-ai-sdk/rage';
import type { SearchResults } from '@sap-ai-sdk/rage';

/**
* Search for documents in a collection.
Expand All @@ -12,7 +12,7 @@ export async function searchCollection(
collectionId: string,
query: string,
resourceGroup: string
): Promise<RetrievalSearchResults> {
): Promise<SearchResults> {
return RetrievalFederatedSearchAcrossDataRepositoriesApi.retrievalV1RetrievalEndpointsSearchDataRepositories(
{
query,
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e-tests/src/vector-retrieval-api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
deleteCollection
} from '@sap-ai-sdk/sample-code';
import { loadEnv } from './utils/load-env.js';
import type { Collection, RetrievalSearchResults } from '@sap-ai-sdk/rage';
import type { Collection, SearchResults } from '@sap-ai-sdk/rage';

loadEnv();

Expand All @@ -28,7 +28,7 @@ describe('VectorApi and RetrievalApi', () => {
documentContent
);
expect(document).toBeDefined();
const searchResults: RetrievalSearchResults = await searchCollection(
const searchResults: SearchResults = await searchCollection(
collectionId,
'what is joule?',
'default'
Expand Down

0 comments on commit 08630b5

Please sign in to comment.