Releases: langroid/langroid
0.1.244
- Tweaks to LanceDocChatAgent and related Agents (QueryPlanner, Critic, etc) to accomodate deviations
- In multi-agent chats, so total cost across all agents, in addition to cumul cost of current agent
0.1.243
Update toml to latest DuckDuckGo (6.0.0) so we no longer get the rate limit error
0.1.242
Support OpenAI GPT-4o -- this is now the default LLM when no model is specified.
To explicitly specify the LLM, you can do, for example:
import langroid.language_models as lm
llm = lm.OpenAIGPT( lm.OpenAIGPTConfig(chat_model = lm.OpenAIChatModel.GPT4o))
And recall you can run most of the example scripts with a model specified via -m gpt-4o
,
and pytests using --m gpt-4o
0.1.241
Gemini support via litellm. See docs https://langroid.github.io/langroid/tutorials/non-openai-llms/
Essentially, you need to:
- install
langroid
with thelitellm
extra, e.g.pip install "langroid[litellm]"
- set up your
GEMINI_API_KEY
in the.env
file or shell env - specify
chat_model="litellm/gemini/gemini-1.5-pro-latest"
0.1.240
QdrantDB, QdrantDBConfig: support for sparse embeddings
0.1.239
Change python range to >= 3.10 < 3.12 to avoid colab errors (used to be >= 3.11)
0.1.238
Minor type sig change
0.1.237
Upgrade to latest DuckDuckGoSearch
0.1.236
Groq support. For any model hosted on groq
, you can use it similar to how you'd use ollama
, e.g.
chat_model = "groq/llama3-8b-8192"
.
See the groq section here: https://langroid.github.io/langroid/tutorials/local-llm-setup/
0.1.235
New param in Task.run(), Task.run_asyn()
: session_id
which is used as a key to look up various settings in Redis cache.
Currently only used to look up "kill status" - this allows killing a running task, either by task.kill()
or by the classmethod Task.kill_session(session_id)
For example usage, see the test_task_kill
in tests/main/test_task.py