diff --git a/.github/workflows/ollama.yml b/.github/workflows/ollama.yml index 39f50fe27e..08d7e24ac6 100644 --- a/.github/workflows/ollama.yml +++ b/.github/workflows/ollama.yml @@ -31,7 +31,10 @@ jobs: - name: start ollama run: yarn ollama:start - name: run summarize-ollama-phi3 - run: yarn test:summarize --model ollama:phi3.5 --out ./temp/summarize-ollama-phi3 + run: yarn test:summarize --model ollama:phi3.5:latest --out ./temp/summarize-ollama-phi3 env: - OLLAMA_HOST: "http://localhost:11434" - + OLLAMA_HOST: "http://localhost:11434" + - name: run convert-ollama-phi3 + run: yarn cli convert summarize --model ollama:phi3.5:latest "packages/sample/src/rag/*.md" --cache-name sum + env: + OLLAMA_HOST: "http://localhost:11434" diff --git a/.gitignore b/.gitignore index b64fd9926c..e73a63dc3b 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,4 @@ packages/core/*.temp.* packages/sample/test.txt packages/sample/poems/*.txt packages/sample/src/rag/markdown.md.txt +*.genai.md diff --git a/docs/src/content/docs/reference/cli/commands.md b/docs/src/content/docs/reference/cli/commands.md index 98220fc43b..9971f7cf66 100644 --- a/docs/src/content/docs/reference/cli/commands.md +++ b/docs/src/content/docs/reference/cli/commands.md @@ -49,7 +49,7 @@ Options: -mtc, --max-tool-calls maximum tool calls for the run -se, --seed seed for the run -em, --embeddings-model embeddings model for the run - --cache enable LLM result cache + -c, --cache enable LLM result cache -cn, --cache-name custom cache file name -cs, --csv-separator csv separator (default: "\t") -ff, --fence-format fence format (choices: "xml", "markdown", "none") @@ -129,6 +129,43 @@ Options: -h, --help display help for command ``` +## `convert` + +``` +Usage: genaiscript convert [options]