FileHawk is a powerful desktop application for semantic file search. Follow these steps to get it running on your system.
Before setting up FileHawk, ensure you have the following installed:
- Download: https://www.python.org/downloads/
- Check if installed: Run
python --versionorpython3 --versionin terminal - Note: On macOS/Linux, you may need to use
python3instead ofpython
- Download: https://nodejs.org/en/download/
- Check if installed: Run
node --versionandnpm --versionin terminal - Note: npm comes bundled with Node.js
- Download: https://git-scm.com/downloads
- Check if installed: Run
git --versionin terminal
git clone https://github.com/yourusername/FileHawk.git
cd FileHawk# On Windows
python -m venv venv
venv\Scripts\activate
# On macOS/Linux
python3 -m venv venv
source venv/bin/activatepip install -r requirements.txtNavigate to the desktop app directory:
cd desktop-appInstall Node.js dependencies:
npm install
# Build the application
npm run build# In FileHawk/desktop-app
npm startThe application should launch automatically and you'll see the FileHawK interface.
- Command not found: Try
python3instead ofpython - Permission errors: Use
pip install --user -r requirements.txt - Virtual environment issues: Make sure to activate it before installing packages
- npm command not found: Reinstall Node.js from the official website
- Permission errors on Linux/macOS: Consider using nvm (Node Version Manager)
- Package installation fails: Try deleting
node_modulesandpackage-lock.json, then runnpm installagain
- App doesn't start: Ensure the Python API server is running on port 5001
- Build fails: Check that all dependencies are installed and TypeScript compiles without errors
- Port 5001 already in use: Stop other applications using this port, or modify the port in
api.pyanddesktop-app/src/renderer/utils/api.ts
- Launch the app: After running
npm run buildwhenever you runnpm start, FileHawk will open automatically - Select folders to index: Click "Select Folders to Index" and choose directories containing your documents
- Wait for indexing: The app will analyze your files and create searchable embeddings (this may take a few minutes for large folders)
- Start searching: Enter natural language queries like:
- "machine learning research papers"
- "budget planning spreadsheets"
- "python code for data processing"
- Explore results: Click on files to see relevant content excerpts
- Use descriptive queries: Instead of "code", try "python machine learning algorithms"
- Index relevant folders: Focus on folders with documents, code, or text files you actually search
- Be patient on first run: AI models download automatically (~100MB) and indexing takes time
- Try different search terms: The AI understands context and synonyms
The application handles most settings automatically:
- AI models: Downloaded automatically on first run
- Folder preferences: Saved automatically when you select folders
- Search settings: Optimized defaults for best results
Advanced users can customize settings by editing config.py in the root directory.
Check the main README.md for additional information and troubleshooting tips.