new features
This commit is contained in:
@@ -16,15 +16,34 @@ or MLX model or a model from your compatible API. AI Studio remembers the
|
||||
choice for that conversation. **Use Default** returns to the model in Settings.
|
||||
|
||||
Use **Resources** beside the model button to select a Knowledge Stack, Skill,
|
||||
Context, or Web Clip for the current chat. **Prompt Library** inserts a saved
|
||||
prompt into the composer so you can edit it before sending. Use **Open Workspace**
|
||||
to create or manage these resources.
|
||||
Context, Web Clip, or Prompt Template for the current chat. **Insert Saved Prompt**
|
||||
copies a saved prompt into the composer for editing. Use **Open Workspace** to
|
||||
manage these resources.
|
||||
|
||||
## 2. Chat with documents
|
||||
|
||||
Use **Documents** in the conversation toolbar to import PDF, UTF-8 text, Markdown, or CSV. AI Studio includes up to four excerpts by default for that chat. If retrieval finds no match, it uses opening excerpts from recent documents. Use the composer toggle to turn this off. The paperclip attaches previewed text to the next message only. Sent messages display the names of the documents supplied with that turn. Scanned PDFs require a text layer. When a server model is selected, the included excerpts are sent to the configured server.
|
||||
Use **Documents** in the conversation toolbar to import PDF, UTF-8 text,
|
||||
Markdown, or CSV. PDFs require extractable text. AI Studio splits documents
|
||||
into overlapping passages and indexes them in SQLite FTS5. When macOS has a
|
||||
sentence embedding for the detected language, AI Studio computes and stores
|
||||
vectors on the Mac. Retrieval combines the FTS5 and cosine similarity rankings
|
||||
with reciprocal rank fusion. Keyword search remains available without embeddings.
|
||||
|
||||
Chat history, older-message recall, and document indexes live in `~/Library/Application Support/AIStudio/studio.sqlite`. Documents are scoped to the selected conversation. Deleting a document removes its index and deleting a conversation removes its messages and documents. The app stores extracted excerpts and vectors locally. It leaves the original files in place.
|
||||
AI Studio retrieves up to four passages from the conversation and four from a
|
||||
selected local Knowledge Stack. When chat-document retrieval finds no match,
|
||||
it uses opening excerpts from recent chat documents. The composer toggle
|
||||
controls chat-document retrieval, and the paperclip attaches previewed text to
|
||||
one turn. Requests label the excerpts `[D1]`, `[D2]`, and so on. The reply's
|
||||
**Document sources** section shows the excerpts the final model received. The
|
||||
app saves those excerpts with the reply so they remain inspectable after a
|
||||
document is removed. Ollama and compatible servers receive any passages
|
||||
included in their generation request. MLX generation runs on the Mac.
|
||||
|
||||
Chat history, older-message recall, and document indexes live in
|
||||
`~/Library/Application Support/AIStudio/studio.sqlite`. Chat documents are
|
||||
scoped to their conversation. Deleting a document removes its index, and
|
||||
deleting a conversation removes its messages and documents. Original files
|
||||
stay in place.
|
||||
|
||||
## 3. Run a tool
|
||||
|
||||
@@ -45,6 +64,28 @@ Creative, and Custom are available across conversations. **Prompt Builder**
|
||||
turns structured inputs into a prompt you can copy, put in the composer,
|
||||
or save as the global system prompt. Global settings persist across launches.
|
||||
|
||||
Open **Workspace → Prompt Studio** to create a versioned template. Put
|
||||
`{{input}}` where the chat or evaluation input belongs. A template without
|
||||
the placeholder goes before the input. Add up to eight input/assistant pairs
|
||||
with **Examples** to demonstrate the desired response in context. Saving
|
||||
records the body, notes, tags, and examples together. **Version History** loads
|
||||
an earlier version into the editor, where you can evaluate it or save it as a
|
||||
new version. **Use as Template** activates the latest saved version for the
|
||||
current conversation.
|
||||
|
||||
**Evaluate** runs the draft and its examples through the default model route
|
||||
from Settings. Enter an optional expected output to check equality after
|
||||
normalizing whitespace and letter case. Evaluation does not add a chat turn.
|
||||
Select a version in the editor and run the same test case to compare outputs.
|
||||
|
||||
**Settings → Generation → Prompt context budget** limits estimated input plus
|
||||
reserved output for MLX, Ollama, and compatible chat. The estimate uses UTF-8
|
||||
size and message overhead, so actual model token counts can differ. The budget
|
||||
preserves system instructions and the latest user input, dropping whole
|
||||
example or history turns and lower-ranked document excerpts as needed. If the
|
||||
required input still exceeds the budget, the request stops with an error.
|
||||
An explicit Ollama context length also constrains the budget.
|
||||
|
||||
Search conversation titles and messages in the sidebar. Rename the selected
|
||||
chat with the pencil button. Completed replies render inline Markdown and fenced
|
||||
code blocks with copy controls. The **Performance** dashboard keeps the last
|
||||
@@ -139,7 +180,7 @@ TEST_RUNNER_AISTUDIO_TEST_OLLAMA_URL=http://127.0.0.1:11434 \
|
||||
TEST_RUNNER_AISTUDIO_TEST_OLLAMA_MODEL=your-installed-tag \
|
||||
TEST_RUNNER_AISTUDIO_TEST_MLX_PATH=/path/to/local-model \
|
||||
TEST_RUNNER_AISTUDIO_TEST_MODEL_DOWNLOAD=qwen3-0.6b-4bit \
|
||||
./test.sh
|
||||
./Scripts/test.sh
|
||||
```
|
||||
|
||||
See `Docs/RELEASE.md` for packaging, signing, and notarization.
|
||||
|
||||
Reference in New Issue
Block a user