Skip to content

Commit

Permalink
refactor: rename to match filename
Browse files Browse the repository at this point in the history
  • Loading branch information
sinedied committed Aug 31, 2023
1 parent f80921f commit 2d8d5e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/api/src/lib/approaches/chat-read-retrieve-read.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const QUERY_PROMPT_FEW_SHOTS: Message[] = [
* It first retrieves top documents from search, then constructs a prompt with them, and then uses
* OpenAI to generate an completion (answer) with that prompt.
*/
export class ChatReadRetrieveReadApproach implements ChatApproach {
export class ChatReadRetrieveRead implements ChatApproach {
chatGptTokenLimit: number;

constructor(
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/plugins/approaches.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fp from 'fastify-plugin';
import { AskApproach, ChatApproach, ChatReadRetrieveReadApproach } from '../lib/index.js';
import { AskApproach, ChatApproach, ChatReadRetrieveRead } from '../lib/index.js';

export type Approaches = {
chat: Record<string, ChatApproach>;
Expand All @@ -15,7 +15,7 @@ export default fp(
// here we include several for exploration purposes.
fastify.decorate('approaches', {
chat: {
rrr: new ChatReadRetrieveReadApproach(
rrr: new ChatReadRetrieveRead(
fastify.azure.search,
fastify.openai,
config.azureOpenAiChatGptModel,
Expand Down

0 comments on commit 2d8d5e5

Please sign in to comment.