Skip to content

Instantly share code, notes, and snippets.

@calebdre
Created June 13, 2024 20:26
Show Gist options
  • Select an option

  • Save calebdre/751b252adbc35fd84dd7aa18a78379ca to your computer and use it in GitHub Desktop.

Select an option

Save calebdre/751b252adbc35fd84dd7aa18a78379ca to your computer and use it in GitHub Desktop.
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