Skip to content

Commit

Permalink
chore: cleanup unused webapp files.
Browse files Browse the repository at this point in the history
  • Loading branch information
shibbas authored and anfibiacreativa committed Nov 20, 2023
1 parent 6cee9e6 commit ae695ff
Show file tree
Hide file tree
Showing 13 changed files with 1 addition and 381 deletions.
112 changes: 0 additions & 112 deletions packages/webapp/src/api/api.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/webapp/src/api/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from './api.js';
export * from './models.js';
export const apiBaseUrl = import.meta.env.VITE_SEARCH_API_URI ?? '';
58 changes: 0 additions & 58 deletions packages/webapp/src/api/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,61 +9,3 @@ export const enum RetrievalMode {
Vectors = 'vectors',
Text = 'text',
}

export type AskRequestOverrides = {
retrievalMode?: RetrievalMode;
semanticRanker?: boolean;
semanticCaptions?: boolean;
excludeCategory?: string;
top?: number;
temperature?: number;
promptTemplate?: string;
promptTemplatePrefix?: string;
promptTemplateSuffix?: string;
};

export type AskRequest = {
question: string;
context?: AskRequestOverrides & {
approach?: Approaches;
};
};

export type Message = {
content: string;
role: string;
context?: Record<string, any> & {
data_points?: string[];
thoughts?: string;
};
};

export type ChatResponse = {
choices: Array<{
index: number;
message: Message;
}>;
error?: string;
};

export type ChatResponseChunk = {
choices: Array<{
index: number;
delta: Partial<Message>;
}>;
error?: string;
};

export type ChatTurn = {
user: string;
bot?: string;
};

export type ChatRequest = {
messages: ChatTurn[];
stream?: boolean;
context?: AskRequestOverrides & {
approach?: Approaches;
suggestFollowupQuestions?: boolean;
};
};

This file was deleted.

65 changes: 0 additions & 65 deletions packages/webapp/src/components/AnalysisPanel/AnalysisPanel.tsx

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions packages/webapp/src/components/AnalysisPanel/index.tsx

This file was deleted.

This file was deleted.

71 changes: 0 additions & 71 deletions packages/webapp/src/components/QuestionInput/QuestionInput.tsx

This file was deleted.

1 change: 0 additions & 1 deletion packages/webapp/src/components/QuestionInput/index.ts

This file was deleted.

This file was deleted.

13 changes: 0 additions & 13 deletions packages/webapp/src/components/UserChatMessage/UserChatMessage.tsx

This file was deleted.

1 change: 0 additions & 1 deletion packages/webapp/src/components/UserChatMessage/index.ts

This file was deleted.

0 comments on commit ae695ff

Please sign in to comment.