Code Monkey home page Code Monkey logo

ollama-tutorial's Introduction

Ollama Tutorial

This is my first attempt at working with LLMs to create Intelligent Digital Workers.

Eventually this project will implement the ideas discussed here

For now, this simple example just connects to a running Ollama server and streams it's response to a hard-coded question.

Running the Ollama server

ollama serve

If this is your first time, download a model

Ollama requires a model on your system. To install the llama3 model, for instance, run the following command:

ollama run llama3

Running the example code

python main.py

Current state:

As of now, some functionality has been shown. But it is very slow (~3-4 minutes to see activity), and on top of that there is an error that is also encountered

I encountered an error while trying to use the tool. This was the error: DuckDuckGoSearchRun._run()
got an unexpected keyword argument 'q'.
Tool duckduckgo_search accepts these inputs: A wrapper around DuckDuckGo Search. Useful for when
you need to answer questions about current events. Input should be a search query.

There is a GitHub issue tracking this same error, but it doesn't appear to have been triaged as of yet.

One thing to note, is that depending on which model is selected for the research_agent role, it might bypass the error after a few tries. This was seen when using the solar model.

Future work:

Will look into trying other tools to replace DuckDuckGo search.

ollama-tutorial's People

Contributors

kourtni avatar chandraerdman avatar

Watchers

 avatar

Forkers

chandraerdman

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.