Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
pchalasani committed Jan 1, 2024
1 parent 8b61917 commit 248d849
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 6 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,20 @@ teacher_task.add_sub_task(student_task)
teacher_task.run()
```

# :fire: Updates/Releases

<details>
<summary> <b>:fire: Updates/Releases</b></summary>
<summary> <b>Click to expand</b></summary>

- **Dec 2023:**
- **0.1.154:** (For details see release notes of [0.1.149](https://github.com/langroid/langroid/releases/tag/0.1.149)
and [0.1.154](https://github.com/langroid/langroid/releases/tag/0.1.154)).
- `DocChatAgent`: Ingest Pandas dataframes and filtering.
- `LanceDocChatAgent` leverages `LanceDB` vector-db for efficient vector search
and full-text search and filtering.
- Improved task and multi-agent control mechanisms
- `LanceRAGTaskCreator` to create a 2-agent system consisting of a `LanceFilterAgent` that
decides a filter and rephrase query to send to a RAG agent.
- **[0.1.141](https://github.com/langroid/langroid/releases/tag/0.1.141):**
API Simplifications to reduce boilerplate:
auto-select an available OpenAI model (preferring gpt-4-turbo), simplifies defaults.
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/non-openai-llms.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ my_llm_config = MyLLMConfig(
## Other local LLM servers
There are other ways to spin up a local server running an LLM behind an OpenAI-compatible API,

- [`oobabooga/text-generation-webui`](https://github.com/oobabooga/text-generation-webui/tree/main/extensions), `ollama`, and `llama-cpp-python`.
- [`oobabooga/text-generation-webui`](https://github.com/oobabooga/text-generation-webui/tree/main/extensions)
- [`ollama`](https://github.com/jmorganca/ollama)
- [`llama-cpp-python`](https://github.com/abetlen/llama-cpp-python)

Expand Down
10 changes: 8 additions & 2 deletions examples/basic/chat-local.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@
import langroid as lr
import langroid.language_models as lm

# assume you've run `ollama pull mistral` to spin up `mistral` locally
# Assume you've run `ollama pull mistral` to spin up `mistral` locally.
# Notes:
# - we use `lm.OpenAIGPTConfig` to incidate this config is for LLMs served
# at OpenAI-compatible endpoints)
# - if you omit `chat_model` below, it defaults to OpenAI GPT4-turbo,
# or you can explicitly specify it as `lm.OpenAIChatModel.GPT4` or `lm.OpenAIChatModel.GPT4_TURBO`

llm_config = lm.OpenAIGPTConfig(
chat_model="litellm/ollama/mistral",
chat_context_length=2048, # adjust based on your local LLM params
Expand All @@ -27,7 +33,7 @@
# llm_config = lm.OpenAIGPTConfig(
# chat_model="local/localhost:8000"
# )
# If the endpoint is listening at https://localhost:8000, you must include the `v1`
# If the endpoint is listening at https://localhost:8000/v1, you must include the `v1`
# at the end, e.g. chat_model="local/localhost:8000/v1"

agent_config = lr.ChatAgentConfig(
Expand Down
3 changes: 2 additions & 1 deletion langroid/agent/special/lance_doc_chat_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ class LanceFilterAgentConfig(ChatAgentConfig):
NOT TOO STRICT, e.g. look for approximate match using LIKE, etc.
You must present the FILTER and (POSSIBLY rephrased QUERY)
using the `add_filter` tool. Use dot notation to refer to nested fields.
using the `add_filter` tool.
Use DOT NOTATION to refer to nested fields, e.g. `metadata.year`, etc.
If you think no FILTER would help, you can leave the `filter` field empty.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "langroid"
version = "0.1.153"
version = "0.1.154"
description = "Harness LLMs with Multi-Agent Programming"
authors = ["Prasad Chalasani <pchalasani@gmail.com>"]
readme = "README.md"
Expand Down

0 comments on commit 248d849

Please sign in to comment.