Skip to content

Commit

Permalink
fix up prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
samlhuillier committed Nov 27, 2023
1 parent 23c9509 commit 0f736c1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
7 changes: 6 additions & 1 deletion electron/main/Prompts/Prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ export function createRAGPrompt(
const contents = entries.map((entry) => entry.content).join(" ");

// Combine the contents with the query to form the final prompt
const prompt = `${contents} ${query}`;
const prompt = `Given the following user-generated notes in a notetaking app:
### Notes start ###
${contents}
### Notes end ###
Answer the following user query responding directly to the user:
${query}`;

return prompt;
}
17 changes: 11 additions & 6 deletions src/components/File/DirectoryPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,17 @@ const DirectoryPicker: React.FC<Props> = ({ onDirectorySelected }) => {
};

return (
<button
className="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"
onClick={handleDirectorySelection}
>
Select Directory
</button>
<div>
<button
className="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"
onClick={handleDirectorySelection}
>
Select Directory
</button>
After you select a directory, files currently in the directory will be
indexed. This may take a while and we currently haven't implemented a
progress bar :)
</div>
);
};

Expand Down

0 comments on commit 0f736c1

Please sign in to comment.