Sollama
Sollama is a Rust-based tool for scraping web content, performing searches, and processing prompts using a Language Model (LLM).
Prerequisites
- Rust (latest stable version)
- Ollama downloaded and running
# this will pull the model and run it
ollama run llama3.2
- Then
/byeto exit the chat session. - Then
ollama serveto start the server.
Install
# Install hto
Building the Project
To build the project, follow these steps:
-
Clone the repository:
-
Build the project using Cargo:
Running the Tool
To run the tool, use the following command:
<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:
Testing
To run the tests, use the following command:
Future Work
- Using better cli args parsing library.
- Implementing better scrapping and searching algorithms.
License
This project is licensed under the MIT License. See the LICENSE file for details.