Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ecopilot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ula
research
ecopilot
Commits
bddc11a0
Commit
bddc11a0
authored
2 months ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Add README with simple installation instructions
parent
e0b543e4
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+47
-0
47 additions, 0 deletions
README.md
with
47 additions
and
0 deletions
README.md
0 → 100644
+
47
−
0
View file @
bddc11a0
Experimental Emacs LLM autocomplete assistant
===
Note: the code in this repository isn't ready for use yet.
This is a simple minimalistic Emacs package that provides
autocomplete-like functionality using LLMs. It uses the Ollama API for
LLM access.
It tries to improve the autocompletion quality by providing
*additional context*
for the LLM, obtained by indexing your project's
source code, and retrieving snippets that are relevant to the code
being completed (a form of
*RAG*
).
The indexing code is taken from
[
Aider
](
https://github.com/Aider-AI/aider
)
and can run as a local
service with its own HTTP API in order to return results with low
latency.
## Usage
To run the indexing service you can use Systemd. But first you need to
install the
*ecopilot_srcindex*
Python package somewhere: for the
purpose of this example, we're going to use a virtualenv.
```
virtualenv venv
./venv/bin/pip3 install -e .
```
Install the unit files in your user's systemd service directory:
```
cp ecopilot-srcindex.{socket,service} ~/.config/systemd/user/
```
Then edit the service unit to reflect the actual installation path of
the
*ecopilot-src-context-server*
program. Lastly:
```
systemctl --user daemon-reload
systemctl --user enable ecopilot-srcindex.socket
systemctl --user start ecopilot-srcindex.socket
```
The service will be automatically started when necessary.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment