Code Monkey home page Code Monkey logo

mindflow's People

Contributors

sajjadgg avatar steegecs avatar tarikkaankoc avatar verbose-void avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mindflow's Issues

mf login {OPENAI_API_KEY} results in empty .config/mindflow/DB.json on MacOS

running on MacOS 12.6.3, conda 4.3.27, Python 3.9.7
mf login {OPENAI_API_KEY}
runs without errors and correctly shows the API key in run_login but after inspecting
.config/mindflow/DB.json turns out to be empty.

more db.json 
{}

Hence running mf chat "tell me a joke" outputs
No service API key configured. Please configure an API key for at least one service.

need to fix conversation overflowing based on hard token limit

the conversation class' _prune function is responsible for pruning a conversation's earlier messages to keep a form of chat persistence, but for all conversations (and the current token limits for openai) need to be under 4096 total tokens. something is broken with this mechanism and the earlier message pruning doesn't work.

to fix you need to run mf history clear but that just gets rid of all chat persistence.

Embeddings at inference

Currently, embeddings are generated at inference. This is slow, but it saves space. At some point, I'll want to save these embeddings for faster inference.

Testing

In need of tests! Please add tests using pytest.

Test everything

I want to make sure the mf diff command is properly parsing and feeding the diffs into gpt.

Cannot run in dev mode getting error No module named 'mindflow'

I am unable to run the project in development mode

โžœ  mindflow git:(main) python mindflow/main.py
Traceback (most recent call last):
  File "/Users/khanakia/Downloads/ai/mindflow/mindflow/main.py", line 4, in <module>
    from mindflow.cli.run import cli
ModuleNotFoundError: No module named 'mindflow'

Screenshot 2023-04-09 at 12 28 39 PM

Cleanup requirements.txt

Maybe some of the requirements are only required for development and doesnt have to be a dependency for users.

I get an error like this when i want to use mindflow

I think there is a conflict because of the env ?

Traceback (most recent call last):
  File "/Users/koc/opt/anaconda3/lib/python3.9/site-packages/numpy/core/__init__.py", line 23, in <module>
    from . import multiarray
  File "/Users/koc/opt/anaconda3/lib/python3.9/site-packages/numpy/core/multiarray.py", line 10, in <module>
    from . import overrides
  File "/Users/koc/opt/anaconda3/lib/python3.9/site-packages/numpy/core/overrides.py", line 6, in <module>
    from numpy.core._multiarray_umath import (
ImportError: dlopen(/Users/koc/opt/anaconda3/lib/python3.9/site-packages/numpy/core/_multiarray_umath.cpython-39-darwin.so, 0x0002): Library not loaded: '@rpath/libopenblas.dylib'
  Referenced from: '/Users/koc/opt/anaconda3/lib/python3.9/site-packages/numpy/core/_multiarray_umath.cpython-39-darwin.so'
  Reason: tried: '/Users/koc/opt/anaconda3/lib/libopenblas.dylib' (no such file), '/Users/koc/opt/anaconda3/lib/libopenblas.dylib' (no such file), '/Users/koc/opt/anaconda3/lib/python3.9/site-packages/numpy/core/../../../../libopenblas.dylib' (no such file), '/Users/koc/opt/anaconda3/lib/libopenblas.dylib' (no such file), '/Users/koc/opt/anaconda3/lib/libopenblas.dylib' (no such file), '/Users/koc/opt/anaconda3/lib/python3.9/site-packages/numpy/core/../../../../libopenblas.dylib' (no such file), '/Users/koc/opt/anaconda3/lib/libopenblas.dylib' (no such file), '/Users/koc/opt/anaconda3/bin/../lib/libopenblas.dylib' (no such file), '/Users/koc/opt/anaconda3/lib/libopenblas.dylib' (no such file), '/Users/koc/opt/anaconda3/bin/../lib/libopenblas.dylib' (no such file), '/usr/local/lib/libopenblas.dylib' (no such file), '/usr/lib/libopenblas.dylib' (no such file)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/koc/opt/anaconda3/bin/mf", line 5, in <module>
    from mindflow.cli.new_click_cli.cli_main import mindflow_cli
  File "/Users/koc/opt/anaconda3/lib/python3.9/site-packages/mindflow/cli/new_click_cli/cli_main.py", line 5, in <module>
    from mindflow.cli.new_click_cli.commands.git.commit import commit
  File "/Users/koc/opt/anaconda3/lib/python3.9/site-packages/mindflow/cli/new_click_cli/commands/git/commit.py", line 6, in <module>
    from mindflow.core.git.commit import run_commit
  File "/Users/koc/opt/anaconda3/lib/python3.9/site-packages/mindflow/core/git/commit.py", line 4, in <module>
    from mindflow.core.git.diff import run_diff
  File "/Users/koc/opt/anaconda3/lib/python3.9/site-packages/mindflow/core/git/diff.py", line 10, in <module>
    from mindflow.db.objects.model import ConfiguredModel
  File "/Users/koc/opt/anaconda3/lib/python3.9/site-packages/mindflow/db/objects/model.py", line 4, in <module>
    import numpy as np
  File "/Users/koc/opt/anaconda3/lib/python3.9/site-packages/numpy/__init__.py", line 144, in <module>
    from . import core
  File "/Users/koc/opt/anaconda3/lib/python3.9/site-packages/numpy/core/__init__.py", line 49, in <module>
    raise ImportError(msg)
ImportError: 

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.

We have compiled some common reasons and troubleshooting tips at:

    https://numpy.org/devdocs/user/troubleshooting-importerror.html

Please note and check the following:

  * The Python version is: Python3.9 from "/Users/koc/opt/anaconda3/bin/python"
  * The NumPy version is: "1.22.3"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: dlopen(/Users/koc/opt/anaconda3/lib/python3.9/site-packages/numpy/core/_multiarray_umath.cpython-39-darwin.so, 0x0002): Library not loaded: '@rpath/libopenblas.dylib'
  Referenced from: '/Users/koc/opt/anaconda3/lib/python3.9/site-packages/numpy/core/_multiarray_umath.cpython-39-darwin.so'
  Reason: tried: '/Users/koc/opt/anaconda3/lib/libopenblas.dylib' (no such file), '/Users/koc/opt/anaconda3/lib/libopenblas.dylib' (no such file), '/Users/koc/opt/anaconda3/lib/python3.9/site-packages/numpy/core/../../../../libopenblas.dylib' (no such file), '/Users/koc/opt/anaconda3/lib/libopenblas.dylib' (no such file), '/Users/koc/opt/anaconda3/lib/libopenblas.dylib' (no such file), '/Users/koc/opt/anaconda3/lib/python3.9/site-packages/numpy/core/../../../../libopenblas.dylib' (no such file), '/Users/koc/opt/anaconda3/lib/libopenblas.dylib' (no such file), '/Users/koc/opt/anaconda3/bin/../lib/libopenblas.dylib' (no such file), '/Users/koc/opt/anaconda3/lib/libopenblas.dylib' (no such file), '/Users/koc/opt/anaconda3/bin/../lib/libopenblas.dylib' (no such file), '/usr/local/lib/libopenblas.dylib' (no such file), '/usr/lib/libopenblas.dylib' (no such file)

Fix outputs

Outputs into the command line could be cleaned up a little bit. After copying to the clipboard, maybe add a new line before output.

Need more explanations on how Indexing works

  1. faced a bug when I was trying to index a folder that is not under git. Fix it. (workaround - making git init in the folder)
  2. No clear how indexing scope is working. I can not really tell if model is still having in mind my files or not. What kind of experiment can we make to understand that? It worked not good for me when I have indexed few JS files and asked a question - it answered using python common knowledge instead.
  3. I want to manage separate indexes-contexts. For each project. How big those could be? For How long are they stored?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.