Skip to content

Commit

Permalink
Updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
iceener committed Nov 27, 2024
1 parent 55e0f82 commit 336d73a
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 155 deletions.
1 change: 1 addition & 0 deletions docs/WebSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import FirecrawlApp from '@mendable/firecrawl-js';
import type OpenAI from 'openai';
import { OpenAIService } from './OpenAIService';
import type { ChatCompletion, ChatCompletionMessageParam } from "openai/resources/chat/completions";
import { selectResourcesToLoadPrompt } from '../websearch/prompts';

// New type definition
type SearchNecessityResponse = {
Expand Down
2 changes: 1 addition & 1 deletion docs/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const searchService = new SearchService(String(process.env.ALGOLIA_APP_ID), Stri
const databaseService = new DatabaseService('docs/database.db', searchService, vectorService);
const documentService = new DocumentService(openaiService, databaseService, textService);

const { docs } = await fileService.process('https://cloud.overment.com/S04E01-1732513660.md', 4500);
const { docs } = await fileService.process('https://cloud.overment.com/S04E03-1732688101.md', 4500);
for (const doc of docs) {
await databaseService.insertDocument(doc, true);
}
Expand Down
Loading

0 comments on commit 336d73a

Please sign in to comment.