Skip to content

Commit

Permalink
minor rag updates
Browse files Browse the repository at this point in the history
  • Loading branch information
samlhuillier committed Dec 27, 2023
1 parent 6620652 commit 55a2eca
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion electron/main/Prompts/Prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function createRAGPrompt(
const contents = entries.map((entry) => entry.content).join(" ");

// Combine the contents with the query to form the final prompt
const prompt = `Given the following user-generated notes in a notetaking app:
const prompt = `Given the following notes:
### Notes start ###
${contents}
### Notes end ###
Expand Down
1 change: 0 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const App: React.FC<AppProps> = () => {
}, []);

const handleDirectorySelected = (directoryPath: string) => {
console.log("HANDLING DIRECTORY SELECTED");
setIsIndexing(true); // Start indexing
setDirectory(directoryPath);
// Trigger indexing in your main process here
Expand Down
2 changes: 1 addition & 1 deletion src/components/Chat/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const ChatWithLLM: React.FC = () => {
if (messages.length <= 1) {
const augmentedPrompt = await window.database.augmentPromptWithRAG(
userInput,
2
5
);
startStreamingResponse(augmentedPrompt);
} else {
Expand Down

0 comments on commit 55a2eca

Please sign in to comment.