This extension provides a simple integration with the LanceDB vector database for the Gemini CLI.
-
Install the Gemini CLI:
npm install -g @google/gemini-cli
-
Install the LanceDB extension:
gemini extensions install https://github.com/your-github-username/lancedb-gemini-extension
(Note: Replace with the actual URL of the extension repository)
-
Find the extension path: Run
gemini extensions listto find the installation path forlancedb-gemini-extension. -
Navigate to the extension directory:
cd <path-to-lancedb-gemini-extension>
(Note: Replace
<path-to-lancedb-gemini-extension>with the actual path from the previous step) -
Install Node.js dependencies:
npm install
-
Install Python dependencies:
pip install -r requirements.txt
No configuration is required. The extension uses a local LanceDB database.
You can interact with the LanceDB extension using either natural language or custom commands.
You can use natural language to create tables, add documents, search, and delete tables.
- Create a table:
gemini -p "create a new lancedb table named my_table" - Add a document:
gemini -p "add the document 'this is a test' to the my_table table" - Search for a document:
gemini -p "search for 'a test' in the my_table table" - Delete a table:
gemini -p "delete the lancedb table named my_table"
You can also use custom commands for more direct control.
- Create a table:
gemini -p "/lancedb:create-table my_table" - Add a document:
gemini -p "/lancedb:add-doc 'this is a test document' my_table" - Search for a document:
gemini -p "/lancedb:search 'a test' my_table" - Delete a table:
gemini -p "/lancedb:delete-table my_table"