neo4j-graphrag-python icon indicating copy to clipboard operation
neo4j-graphrag-python copied to clipboard

Implement tool calling for Ollama and include examples

Open kalrasamridhi7 opened this issue 2 months ago • 5 comments

Description

This PR implements tool calling functionality from LLMInterface for Ollama. Also provides an example for it.

Type of Change

  • [x] New feature
  • [ ] Bug fix
  • [ ] Breaking change
  • [ ] Documentation update
  • [ ] Project configuration change

Complexity

Complexity: Medium

How Has This Been Tested?

  • [x] Unit tests
  • [ ] E2E tests
  • [x] Manual tests

Checklist

The following requirements should have been met (depending on the changes in the branch):

  • [ ] Documentation has been updated
  • [x] Unit tests have been updated
  • [ ] E2E tests have been updated
  • [x] Examples have been updated
  • [ ] New files have copyright header
  • [x] CLA (https://neo4j.com/developer/cla/) has been signed
  • [x] CHANGELOG.md updated if appropriate

kalrasamridhi7 avatar Oct 25 '25 15:10 kalrasamridhi7

@CodiumAI-Agent /update_changelog

kalrasamridhi7 avatar Oct 25 '25 15:10 kalrasamridhi7

Changelog updates: 🔄

2025-10-25 *

Added

  • Tool calling support for Ollama in LLMInterface, including sync/async APIs
  • Example demonstrating Ollama tool calls and updated examples index

Tested

  • Unit tests and manual testing for new Ollama tool calling functionality

to commit the new content to the CHANGELOG.md file, please type: '/update_changelog --pr_update_changelog.push_changelog_changes=true'

QodoAI-Agent avatar Oct 25 '25 15:10 QodoAI-Agent

Hi @kalrasamridhi7 , Thanks for this work! I saw you signed the CLA (thanks for this too), we're going to add you to the whitelist and process with the review shortly.

stellasia avatar Oct 28 '25 12:10 stellasia

Changelog updates: 🔄

Added

  • Tool calling support for Ollama in the LLM interface, with synchronous and asynchronous examples.
  • Unit tests covering Ollama tool calling behavior.

to commit the new content to the CHANGELOG.md file, please type: '/update_changelog --pr_update_changelog.push_changelog_changes=true'

QodoAI-Agent avatar Oct 28 '25 12:10 QodoAI-Agent

Hi @stellasia, thanks for getting back. Awaiting review!

kalrasamridhi7 avatar Nov 13 '25 11:11 kalrasamridhi7