Created
June 13, 2024 20:26
-
-
Save calebdre/751b252adbc35fd84dd7aa18a78379ca to your computer and use it in GitHub Desktop.
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
| export type FileInfo = { | |
| content: string | |
| path: string | |
| filename: string | |
| functions?: FunctionInfo[] | |
| } | |
| export type FunctionInfo = { | |
| function: string | |
| functionName: string | |
| description: string | |
| embedding?: number[] | |
| } | |
| export type QueryResult = { | |
| score: number | |
| funcName: string | |
| } | |
| export type SampleQuery = { | |
| query: string; | |
| expectedFunctions: { | |
| functionName: string; | |
| relevancy: number; | |
| relevanceExplanation: string; | |
| }[]; | |
| } | |
| export interface ExtractFunctionResponse { | |
| function: string; | |
| functionName: string; | |
| } | |
| export type ExpectedFunction = { | |
| functionName: string, | |
| relevancy: number, | |
| relevanceExplanation: string | |
| } | |
| export type SearchQuery = { | |
| query: string, | |
| expectedFunctions: ExpectedFunction[] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment