Skip to content

Commit

Permalink
init smart-templates new
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Joseph Petro committed Dec 8, 2024
1 parent 5079ee7 commit 409f4b6
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 5 deletions.
Empty file added smart-templates-2/index.js
Empty file.
38 changes: 38 additions & 0 deletions smart-templates-2/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "smart-templates",
"author": "Brian Joseph Petro (🌴 Brian)",
"license": "MIT",
"version": "1.0.2",
"type": "module",
"description": "Smart templates for generating content with AI.",
"main": "smart_templates.js",
"keywords": [
"templates",
"ai"
],
"repository": {
"type": "git",
"url": "brianpetro/jsbrains"
},
"bugs": {
"url": "https://github.com/brianpetro/jsbrains/issues"
},
"homepage": "https://jsbrains.org",
"dependencies": {
"smart-chat-model": "file:../smart-chat-model",
"smart-sources": "file:../smart-sources"
},
"devDependencies": {
"ava": "^6.1.3",
"dotenv": "^16.4.5"
},
"scripts": {
"test": "npx ava --verbose"
},
"ava": {
"files": [
"smart_templates.test.js",
"**/*.test.js"
]
}
}
Empty file.
Empty file.
Empty file.
35 changes: 35 additions & 0 deletions smart-templates-2/templates/lookup.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"opts": {},
"tool": {
"lookup": {
"type": "function",
"function": {
"name": "lookup",
"description": "Performs a semantic search of the user's data. Use this function to respond to queries like 'Based on my notes...' or any other request that requires surfacing relevant content.",
"parameters": {
"type": "object",
"properties": {
"hypotheticals": {
"type": "object",
"description": "Short hypothetical notes predicted to be semantically similar to the notes necessary to fulfill the user's request. Provide at least three hypotheticals per request. The hypothetical notes may contain paragraphs, lists, or checklists in markdown format. Each hypothetical note should begin with breadcrumbs indicating the anticipated folder(s), file name, and relevant headings separated by ' > ' (no slashes). Example: PARENT FOLDER NAME > CHILD FOLDER NAME > FILE NAME > HEADING 1 > HEADING 2 > HEADING 3: HYPOTHETICAL NOTE CONTENTS.",
"properties": {
"1": {
"type": "string"
},
"2": {
"type": "string"
},
"3": {
"type": "string"
}
},
"required": ["1", "2", "3"]
}
},
"required": ["hypotheticals"]
}
}
}
},
"output": {}
}
5 changes: 0 additions & 5 deletions smart-templates/templates/lookup.json

This file was deleted.

0 comments on commit 409f4b6

Please sign in to comment.