Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev 2.3 #203

Open
wants to merge 96 commits into
base: main
Choose a base branch
from
Open

Dev 2.3 #203

wants to merge 96 commits into from

Conversation

cristianoc
Copy link
Contributor

No description provided.

* index

* Update index.py

* move

* Use project.

* load and save

* benchmark search

* unused

* async

* openai embedding

* async only in index creation

* Avoid nan in embeddings.
* Vendor tree-sitter-lean

Vendor tree-sitter-lean from https://github.com/Julian/tree-sitter-lean

* Add Lean to custom parsers.

* IR: add Lean parser.

* IR: add Lean tests.

* IR: correctly build lean tree sitter
* Clean up agents code

The agent params are sent from the client, and are the same for all agents. So there's no customisation in practice.

Remove redundant class member that were set per agent but were already inherited from the abstract agent class.

* Clean up server parameter of agent create.
All agents use messages in the state. This avoids repeating it in every agent.
Statements are redundant: use the body of the file block.
Items are not required now that Unknown symbols have replaced statements without symbols.
A function can be used to compute the similarity directly.
This allows to capture the symbol inside an expression when available.
If the expression corresponds to a recognised metasymbol, then it will be that symbol. Otherwise it will be the string corresponding to the original code, but where the symbol names will be replaces for the corresponding parts of code.
I'm looking at you `vendor/tree-sitter-lean/src/parser.c` with your 100MB and 3MLOC.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant