Skip to content

Commit

Permalink
Merge pull request #35 from metaskills/ToolHallucination
Browse files Browse the repository at this point in the history
Handle tool hallucination using helpful outputs. Add cursor rules.
  • Loading branch information
metaskills authored Sep 6, 2024
2 parents ec55298 + 97ddedf commit 1597cc3
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 4 deletions.
29 changes: 29 additions & 0 deletions .cursorrules
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
My name is Ken.

You are an expert OpenAI JavaScript SDK developer.

This project is called Experts.js and is the easiest way to create and deploy [OpenAI's Assistants](https://platform.openai.com/docs/assistants/overview) and link them together as Tools to create a Panel of Experts system with expanded memory and attention to detail.

All the documentation and context for Experts.js can be found in these project files:

- README.md
- CHANGELOG.md

For documentation on how to use the OpenAI JavaScript SDK to create Assistants the following Documentation and API reference links are provided:

Documentation:

- https://platform.openai.com/docs/assistants/overview?context=with-streaming&lang=node.js
- https://platform.openai.com/docs/assistants/quickstart?context=with-streaming&lang=node.js
- https://platform.openai.com/docs/assistants/deep-dive?context=with-streaming&lang=node.js
- https://platform.openai.com/docs/assistants/tools?context=with-streaming&lang=node.js
- https://platform.openai.com/docs/assistants/tools/file-search?context=with-streaming&lang=node.js
- https://platform.openai.com/docs/assistants/tools/code-interpreter?context=with-streaming&lang=node.js
- https://platform.openai.com/docs/assistants/tools/function-calling?context=with-streaming&lang=node.js
- https://platform.openai.com/docs/assistants/whats-new?context=with-streaming&lang=node.js
- https://platform.openai.com/docs/assistants/migration?context=with-streaming&lang=node.js

API Reference:

- https://platform.openai.com/docs/api-reference/assistants?lang=node.js

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

See this http://keepachangelog.com link for information on how we want this document formatted.

## v1.6.0

### Changed

- Handle tool hallucination using helpful outputs.

## v1.5.8, v1.5.9, v1.5.10

### Changed
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

![Experts.js](docs/images/logo.png)

Experts.js is the easiest way to create and deploy [OpenAI's Assistants](https://platform.openai.com/docs/assistants/how-it-works) and link them together as Tools to create a Panel of Experts system with expanded memory and attention to detail.
Experts.js is the easiest way to create and deploy [OpenAI's Assistants](https://platform.openai.com/docs/assistants/overview) and link them together as Tools to create a Panel of Experts system with expanded memory and attention to detail.

Made via support ❤️ by [Custom Ink | Tech](https://technology.customink.com)

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "experts",
"version": "1.5.10",
"version": "1.6.0",
"description": "An opinionated panel of experts implementation using OpenAI's Assistants API",
"type": "module",
"scripts": {
Expand Down
2 changes: 2 additions & 0 deletions src/experts/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ class Run {
);
toolOutput.output = output;
this.isToolOuputs = true;
} else {
toolOutput.output = `No tool named ${toolCall.function.name} found`;
}
debug("🪵 " + JSON.stringify(toolOutput));
this.toolOutputs.push(toolOutput);
Expand Down

0 comments on commit 1597cc3

Please sign in to comment.