Skip to content

Commit

Permalink
docs: update ai21 docs and readme with jamba 1.5 and tool calling
Browse files Browse the repository at this point in the history
  • Loading branch information
miri-bar committed Sep 10, 2024
1 parent b8f0837 commit e9ff660
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/docs/examples/llm/ai21.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@
"\n",
"\n",
"def multiply(a: int, b: int) -> int:\n",
" \"\"\"Multiple two integers and returns the result integer\"\"\"\n",
" \"\"\"Multiply two integers and returns the result integer\"\"\"\n",
" return a * b\n",
"\n",
"def subtract(a: int, b: int) -> int:\n",
Expand Down Expand Up @@ -398,7 +398,7 @@
")\n",
"agent = agent_worker.as_agent()\n",
"\n",
"response = agent.chat(\"My friend moses had 10 apples. He ate 5 apples in the morning. Then he found a box with 25 apples. he divided all his apples between his 5 friends. How many apples did each friend got?\")"
"response = agent.chat(\"My friend Moses had 10 apples. He ate 5 apples in the morning. Then he found a box with 25 apples. He divided all his apples between his 5 friends. How many apples did each friend get?\")"
]
}
],
Expand Down
6 changes: 3 additions & 3 deletions llama-index-integrations/llms/llama-index-llms-ai21/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ from llama_index.core.tools import FunctionTool


def multiply(a: int, b: int) -> int:
"""Multiple two integers and returns the result integer"""
"""Multiply two integers and returns the result integer"""
return a * b

def subtract(a: int, b: int) -> int:
Expand Down Expand Up @@ -211,6 +211,6 @@ agent_worker = FunctionCallingAgentWorker.from_tools(
)
agent = agent_worker.as_agent()

response = agent.chat("My friend moses had 10 apples. He ate 5 apples in the morning. Then he found a box with 25 apples."
"he divided all his apples between his 5 friends. How many apples did each friend got?")
response = agent.chat("My friend Moses had 10 apples. He ate 5 apples in the morning. Then he found a box with 25 apples."
"He divided all his apples between his 5 friends. How many apples did each friend get?")
```

0 comments on commit e9ff660

Please sign in to comment.