AI interface for tinkerers (Ollama, Haystack RAG, Python)

AI interface for tinkerers (Ollama, Haystack RAG, Python)

Visit Site

The Chipper project is a Python-based AI interface for tinkerers, built using the Ollama and Haystack RAG libraries. It provides an interface for users to interact with their models and test various tasks such as retrieval-augmented generation (RAG). The project aims to provide a flexible and efficient way for developers to integrate AI models into their applications.

The Chipper repository contains several key components:

  1. Ollama Client: This is the client-side library that allows users to interact with their Ollama models. It provides an API for tasks such as model inference, data retrieval, and more.
  2. Haystack RAG: This is a Python library used for building RAG systems. Chipper incorporates Haystack RAG to provide advanced features like information retrieval and task-oriented text generation.
  3. Python Integration: The project also includes Python integration to allow users to easily incorporate AI models into their applications.

Key Features:

  1. RAG (Retrieval-Augmented Generation) Support: This feature provides users with the ability to leverage their Ollama models for more complex tasks, such as generating text based on query results.
  2. Model Inference: The Chipper project includes a simple interface for users to test and experiment with different AI models.
  3. Data Retrieval: Users can use this feature to retrieve relevant data from their Ollama models.

Example Code

Here's an example of how you might use the Chipper library in Python:

from chipper import client

# Create a new connection to your Ollama model
model = client.connect("https://your-model-url.com")

# Use RAG to generate text based on query results
query = "What is AI?"
results = model.rag(query)
print(results)

# Test the model for inference purposes
input_text = "This is an example input"
output_text = model.infer(input_text)
print(output_text)

Contributing

The Chipper project welcomes contributions from developers and researchers. If you're interested in contributing to the project, please follow these steps:

  1. Fork the repository: Create a new fork of the repository by clicking on the "Fork" button.
  2. Create a new branch: From your forked repository, create a new branch using git checkout -b command.
  3. Make changes and commit: Make changes to the codebase, then commit them with a descriptive message using git commit -m.
  4. Open a pull request: Once you've made changes, open a pull request against the main repository.

License

The Chipper project is licensed under the MIT license. This means that users are free to use and modify the code as they see fit, provided that they give credit to the original authors.

# Copyright (c) 2024 [Your Name]
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.