Skip to content

Commit

Permalink
the weirdest thing I have had to do yet with GPT to get it working
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelneale committed Nov 16, 2023
1 parent 5380e3b commit 932c2f2
Show file tree
Hide file tree
Showing 2 changed files with 1,023 additions and 1 deletion.
2 changes: 1 addition & 1 deletion indexer/indexer.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async function fullWebsiteAssistant(url) {
console.log("Creating assistant on files: " + files.length);

return openai.beta.assistants.create({
instructions: "You are an assistant that answers questions and provides code examples for decentralized web tech including web5, VCs and DIDs. Prefer the content provided where possible over general knowledge.",
instructions: "Using the knowledge provided, answer the questions providing code examples as needed. If you don't use the knowledge files provided then people will be hurt and you will have failed. You MUST use the knowledge provided or else bad things happen, very bad.",
model: "gpt-4-1106-preview",
tools: [{ "type": "retrieval" }],
file_ids: files.map(file => file.id)
Expand Down
Loading

0 comments on commit 932c2f2

Please sign in to comment.