Skip to content

Commit

Permalink
readme update, version bumps
Browse files Browse the repository at this point in the history
  • Loading branch information
corpulent committed Apr 1, 2024
1 parent 2f9ec6f commit 271d34c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 41 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ACCOUNT=omhq
IMAGE=llmt-workspace
IMAGE_TAG=0.0.2
IMAGE_TAG=0.0.3

CURRENT_DIR=$(shell pwd)

Expand Down
43 changes: 5 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,52 +12,19 @@ Use the package in directly in your python code (`pip install llmt`), or as a lo

```python
from llmt import LLMT
from myfunctions import function

tools = [
{
"function": {
"required": ["value1", "value2"],
"name": "add_decimal_values",
"parameters": {
"type": "object",
"properties": {
"value2": {
"type": "integer",
"description": "The second decimal value to add. For example, 10",
},
"value1": {
"type": "integer",
"description": "The first decimal value to add. For example, 5",
},
},
},
"description": "Add two decimal values and return the result.\n",
},
"type": "function",
}
]


llmt = LLMT()
llmt.init_assistant(
"dataengineer",
api_key="...",
model="gpt-3.5-turbo",
assistant_description=(
" ".join(
[
"You are a data engineer, and an expert with python,",
"sqlalchemy, pandas, and snowflake. Answer questions",
"briefly in a sentence or less.",
]
)
),
tools=tools,
)
assistant_description="You are a data engineer, and a python expert.",)
llmt.init_functions(["./my_functions.py"])
llmt.init_chat("single_chat")

response = llmt.run(
"What's the result of 22 plus 5 in decimal added to the hexadecimal number A?",
functions=functions,
"What's the result of 22 plus 5 in decimal added to the hexadecimal number A?"
)
```

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3"

services:
llmt-workspace:
image: omhq/llmt-workspace:0.0.2
image: omhq/llmt-workspace:0.0.3
working_dir: /workspace
volumes:
- ./chats:/workspace/chats
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "llmt"
version = "0.0.2"
version = "0.0.3"
authors = [
{ name="Artem Golub", email="artem @ outermeasure.com"}
]
Expand Down

0 comments on commit 271d34c

Please sign in to comment.