-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make RAG search prompt configurable via API, include search result su…
…mmary in response.
- Loading branch information
Chris
committed
Nov 6, 2024
1 parent
eddb589
commit d5d3d10
Showing
3 changed files
with
94 additions
and
36 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { PromptSearchLLMResponse, PromptSearchType } from "../tools/promptSearch" | ||
|
||
export interface PromptSearchServiceDataTypeEmails extends PromptSearchServiceDataType { | ||
attachmentLength?: number | ||
} | ||
|
||
export interface PromptSearchServiceDataType { | ||
limit?: number, | ||
maxLength?: number, | ||
outputType?: string | ||
} | ||
|
||
export interface PromptSearchServiceDataTypes { | ||
emails?: PromptSearchServiceDataTypeEmails, | ||
chatMessages?: PromptSearchServiceDataType, | ||
favorites?: PromptSearchServiceDataType, | ||
following?: PromptSearchServiceDataType, | ||
files?: PromptSearchServiceDataType, | ||
calendarEvents?: PromptSearchServiceDataType | ||
} | ||
|
||
export interface PromptSearchServiceConfig { | ||
searchType?: PromptSearchType | ||
maxContextLength?: number | ||
dataTypes?: PromptSearchServiceDataTypes | ||
promptSearchConfig?: PromptSearchLLMResponseOptional | ||
} | ||
|
||
export interface PromptSearchLLMResponseOptional extends Partial<PromptSearchLLMResponse> {} |
This file contains 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 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