Navigate your knowledge base like a busy bee! ๐๐โจ
๐ Hive is a CLI tool for semantic searching of your knowledge base ๐. It allows you to easily search through your collection of files and directories, extracting meaningful information based on your prompts. No more searching through haystacksโlet Hive find the golden honey! ๐ฏ๐ Embrace the buzz and let your knowledge thrive! ๐๐ก
You can install Hive using pip:
pip install hive-cli
To get started with Hive, initialize it in your project directory using the following command:
hive init
This sets up Hive and creates the necessary configuration files to enable knowledge base searching.
You can add files or directories to your Hive knowledge base using the add command:
hive add <file_or_dir_to_add>
This command allows Hive to index and analyze the content of the specified files or directories, making them searchable within your knowledge base.
Hive currently supports only Markdown and PDF files. Support for other file types is coming soon!
To perform a semantic search within your knowledge base, use the search command along with your prompt:
hive search "your prompt"
Hive will analyze your prompt and match it against the indexed content, providing you with the most relevant results based on semantic similarity.
Here's an example output of a search performed with Hive:
hive search "are honey bees good?"
โญโ ./data/the-problem-with-honey-bees.md โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ But think about them, we must. I used to believe that honey bees were a gateway species, and that concern over โ
โ their health and prosperity would spill over onto native bees, benefitting them, too. While this may have happened โ
โ in some cases, evidence is mounting that misguided enthusiasm for honey bees has likely been to the native beesโ โ
โ detriment. Beekeeping doesnโt make me feel good, anymore. In fact, quite the opposite. โ
โ โ
โฐโ Match score: 73% โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
The search output displays the matched file, along with the relevant text snippet and a match score indicating the similarity between the prompt and the content.
๐ Hive makes it easy to find the information you need, saving you time and effort!
We welcome contributions to Hive! Feel free to open issues and submit pull requests for any enhancements or bug fixes. Let's make Hive even better together! ๐
Hive is licensed under the MIT License.
๐ Don't waste time searching, let Hive be your knowledge navigator! Start exploring your knowledge base effortlessly with Hive. Happy searching! ๐โจ