Commit Graph

85 Commits (main)

Author SHA1 Message Date
sigoden 2eab71a641
feat: rag hybrid search (#618) 6 hours ago
sigoden 492b006db7
refactor: load pdf/docx files (#592) 1 week ago
sigoden bb867c4fcb
feat: support bot (#579)
* feat: support bots

* refactor with RoleLike

* improve exiting session

* make bot works with rag

* refactor repl assert state

* add bot banner

* repl complete bots according bots.txt

* fix on windows

* remove threadpool executing function callings

* adjust repl left_prompt

* move bot config to global config.yaml

* `.bot` throw err if funciton callings is not configured
1 week ago
sigoden 1ec6abfaee
feat: support RAG (#560)
* feat: support RAG

* support more embeddings models and implement concurrent embedding api

* show the progress of addings paths

* ignore embedding context when saving message

* embedding model max_chunk_size => default_chunk_size

* support pdf and pandoc formats (docx, epub, ipynb)
2 weeks ago
sigoden 71f2e94579
refactor: switch to bitflags State (#557) 3 weeks ago
sigoden 38797e3264
chore: release v0.18.0 (#551) 3 weeks ago
sigoden 5458150ed3
fix: json stream parser and refine client modules (#538) 4 weeks ago
sigoden ba3bcfd67c
feat: allow patching req body with client config (#534) 4 weeks ago
sigoden b4a40e3fed
feat: support function calling (#514)
* feat: support function calling

* fix on Windows OS

* implement multi-steps function calling

* fix on Windows OS

* add error for client not support function calling

* refactor message data structure and make claude client supporting function calling

* support reuse previous call results

* improve error handling for function calling

* use prefix `may_`  as indicator for `execute` type fucntions
1 month ago
sigoden a75aef459d
feat: remove tiktoken (#506) 1 month ago
sigoden 154c1e0b4b
chore: release v0.17.0 (#497) 1 month ago
sigoden c4c948a54c chore: update deps 2 months ago
sigoden 1f2b626703
feat: support bedrock client (#450) 2 months ago
sigoden 0a4c0413ef
feat: serve all LLMs as OpenAI-compatible API (#431) 2 months ago
sigoden 1cc89eff51
refactor: more async code (#427) 2 months ago
sigoden a3f63a5e04
chore: release v0.16.0 (#404) 2 months ago
sigoden 78d6e1b1e0
chore: release v0.15.0 (#387)
* chore: release v0.15.0

* add arm/armv7 releases

* update deps
2 months ago
sigoden 84695b62c6 chore: update deps 3 months ago
sigoden c3677e3380
chore: release v0.14.0 (#341) 3 months ago
sigoden 2404a619e4 chore: update deps 3 months ago
sigoden 32ce76e4d1 chore: update deps 4 months ago
sigoden aec1b707af chore: release v0.13.0 4 months ago
sigoden 21d1be5bed
refactor: improve prompt error handling (#319) 4 months ago
sigoden 16b7ac071f chore: update deps and readme 4 months ago
sigoden 6c0204e696
refactor: change header of messages saved to markdown (#317) 4 months ago
sigoden fe35cfd941
feat: supports model capabilities (#297)
1. automatically switch to the model that has the necessary capabilities.
2. throw an error if the client does not have a model with the necessary capabilities
5 months ago
sigoden 665f7ff4b9
fix: copy on linux wayland (#288) 6 months ago
sigoden 0bda6af4dc chore: release v0.12.0 6 months ago
sigoden b4ab5238ae chore: update deps and readme 6 months ago
sigoden 1bb28665f7 chore: update readme and deps 6 months ago
sigoden 6280f5ab4b
feat: qianwen vision models support embeded images (#277) 6 months ago
sigoden e4d301f3d7
fix: pipe failed on macos (#264) 7 months ago
sigoden 075631d794 chore: release v0.11.0 7 months ago
sigoden 30e2fd62dc chore: update deps 7 months ago
sigoden 25e545474f
chore: upgrade deps (#250) 7 months ago
sigoden 35c75506e2
feat: support vision (#249)
* feat: support vision

* clippy

* implement vision

* resolve data url to local file

* add model openai:gpt-4-vision-preview

* use newline to concate embeded text files

* set max_tokens for gpt-4-vision-preview
7 months ago
sigoden 542dcfe6f6
feat: extend `.read` to support files and messages (#242) 7 months ago
sigoden 01cf8acb81
refactor: improve code quanity (#238) 7 months ago
sigoden a8a504e0f0 chore: release v0.10.0 8 months ago
sigoden 5dabe723ed chore: release v0.9.0 8 months ago
sigoden dce6877f5d
refactor: optimize render (#202) 8 months ago
sigoden 8d76fc77fb refactor: use reqwest-eventsource as sse client 8 months ago
sigoden 7f2210dbca
refactor: clients/* and config.rs (#193)
- add register_clients macro to make it easier to add a new client
- no create_client_config, just add const PROMPTS
- move ModelInfo from clients/ to config/
- model's max_tokens are optional
- improve code quanity on config/mod.rs
- add/use macro config_get_fn
8 months ago
sigoden 680670e834
feat: support custom theme (#187) 8 months ago
sigoden 2203163938 chore: update readme and cli help 8 months ago
sigoden f2c9f00bda
fix: detect light theme only by env var (#177) 8 months ago
sigoden b276dfedd2
feat: support textwrap (#171)
* feat: support textwrap

* improve cmd_render_stream

* done cmd_render_stream

* add `-w` alias to `--wrap`

* done repl_render_stream

* add `config.wrap_code`

* remove cached config.wrap_width

* fix unxpected duplicate lines on kitty

* refactor markdown render

* improve render

* fix test
8 months ago
sigoden 557bed1459 chore: update Cargo.toml 8 months ago
sigoden bc44026ff8
feat: enhance session/conversation (#162)
* feat: enhance session/conversation

* updates

* updates

* cut version v0.9.0-rc2

* add .session name completion
8 months ago
sigoden 0179bef80d
chore: replace atty with is-terminal (#156) 8 months ago