Crates.io | sollama |
lib.rs | sollama |
version | 0.1.1 |
source | src |
created_at | 2024-11-05 10:05:23.658257 |
updated_at | 2024-11-05 10:11:43.76181 |
description | A CLI Tool to Search and summarize the results with Ollama models in your terminal |
homepage | https://github.com/EsmaeelNabil/sollama |
repository | |
max_upload_size | |
id | 1436280 |
size | 117,875 |
Sollama is a Rust-based tool for scraping web content, performing searches, and processing prompts using a Language Model (LLM).
# this will pull the model and run it
ollama run llama3.2
/bye
to exit the chat session.ollama serve
to start the server.# Install hto
cargo install sollama
To build the project, follow these steps:
Clone the repository:
git clone https://github.com/esmaeelnabil/sollama.git
cd sollama
Build the project using Cargo:
cargo build --release
To run the tool, use the following command:
cargo run --release -- <search_query> <llm_query> <search_results_count> <llm_model>
<search_query>
: The search query to perform.<llm_query>
: The query or question to be included in the prompt.<search_results_count>
: The number of search results to return from Google: default = 3
.<llm_model>
: The model to be used for processing the prompt: default = "llama3.2:latest"
.Example:
cargo run --release -- "rust programming" "based on the content provided what is : rust programming" 5 "gpt-3"
To run the tests, use the following command:
cargo test
This project is licensed under the MIT License. See the LICENSE
file for details.