Giter VIP home page Giter VIP logo

Comments (1)

sestinj avatar sestinj commented on June 12, 2024

@logancyang it looks like you're doing nothing wrong! Properties of undefined does seem like a separate error and I'll check this out.

But for the main error, I'm wondering if perhaps the aiState file just got pruned out of the context (this seems particularly likely since it's at the top of the list). A couple of things might help debug:

  • Check the "Output" window in VS Code (next to Terminal), go to the dropdown, and select "Continue - LLM Prompt/Completion". This will show the exact prompt sent to the LLM where you'd be able to verify that anything was/wasn't included
  • If it turns out that this is just getting cut out, then you can adjust the number of results returned to make sure that none of them are cut out: https://continue.dev/docs/walkthroughs/codebase-embeddings#nfinal

Assuming this is the case there are a few really obvious fixes I'll make on our end:

  1. Set the default nFinal to something that would fit inside of the default GPT-4 context window
  2. Fix the docs because they say default nFinal is 5. It's actually 10 right now
  3. Return the results in reverse order because that top result should be the closest match, but is the first to be truncated

from continue.

Related Issues (20)

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.