This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; Vector stores (beta) | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
(defn create-vector-store | |
"Create a vector store. | |
Example: | |
``` | |
(create-vector-store {:name \"Support FAQ\" :file-ids [\"file-id-123\"]}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;;------------------------------------- assistants ---------------------------------------------------- | |
(s/def ::name string?) | |
(s/def ::instructions string?) | |
(s/def ::assistant-args (s/keys :req-un [::name ::instructions])) | |
(defn make-assistant | |
"Create an assistant with the given parameters. Provide a map like with following keys: | |
:name - a string, no default. | |
:instructions - a string, the systems instructions; defaults to 'You are a helpful assistant.', | |
:model - a string; defaults to 'gpt-4-1106-preview', | |
:tools - a vector containing maps; defaults to [{:type 'code_interpreter'}]." |