ericmjl / llamabot

Pythonic class-based interface to LLMs
https://ericmjl.github.io/llamabot/
119 stars 21 forks source link

Getting started docs are a bit sparse #125

Open willingc opened 5 hours ago

willingc commented 5 hours ago

Hi @ericmjl :sunny: I've been trying to test out llamabot and am getting bogged down with configuration issues. I'm trying to get the Feynman simple chat example with either the OpenAI API key or ollama locally with no success. Unsuccessful key validation for openai and missing dependencies with ollama (langchain-community, langchain-core, langsmith).

Any tips? I will be a happy to write docs (or have openai do so) once I am up and running.

P.S. Cool SciPy talk. We should all have a Paul Ivanov pun bot.

amirmolavi commented 2 hours ago

Hi @willingc , I am new and trying to play/learn this cool bot :) I just tried it in a notebook. I use poetry for environment management. you can find the setup here. I also set up the environment variable like this:

Screenshot 2024-10-30 at 9 43 03 PM

As I recall, these are all I had to do.

willingc commented 1 hour ago

Thanks @amirmolavi. Your config helped me troubleshoot my pixi environment. For some reason, pixi was resolving llamabot to 0.4.4.

Going to try a different package management tool now.

Update: Got it working with miniconda.

willingc commented 1 hour ago

Thanks again @amirmolavi!