@promptbook/azure-openai
Advanced tools
Changelog
0.59.0
(2024-06-30)
Preparation for system for management of external knowledge (RAG), vector embeddings and propper building of pipeline collection.
MaterialKnowledgePieceJson
KnowledgeJson
prepareKnowledgeFromMarkdown
exported from @promptbook/core
promptbookStringToJson
to async function (and add promptbookStringToJsonSync
for promptbooks without external knowledge)createPromptbookLibraryFromSources
to createPromptbookLibraryFromJson
and allow only compiled jsons as input + it is not async
anymorecreateLibraryFromPromise
SimplePromptbookLibrary
not exposed at all, only type PromptbookLibrary
and constructorscreatePromptbookLibraryFromXyz
to createLibraryFromXyz
CallbackInterfaceTools
, OpenAiExecutionTools
, AnthropicClaudeExecutionTools
, etc.)libraryToJson
exported from @promptbook/core
ptbk make ...
can convert promptbooks to JSONpromptbookStringToJson
automatically looks for promptbook-collection.json
in root of given directoryvalidatePromptbookJson
to validatePromptbook
embed
method on LLM tools, PromptEmbeddingResult
, EmbeddingVector
and embeddingVectorToString
createLibraryFromDirectory
still DONT use prebuild library (just detects it)