context-labs / autodoc

Experimental toolkit for auto-generating codebase documentation using LLMs
MIT License
1.93k stars 113 forks source link

Error: TypeError: Cannot read properties of undefined (reading 'length') #18

Closed alfonso-paella closed 1 year ago

alfonso-paella commented 1 year ago

I did a fresh install with yarn the project, and cloned a repo we had with the indices precomputed. Then imported the env var and ran doc q

Error:

TypeError: Cannot read properties of undefined (reading 'length')
    at makeQAPrompt (file:///Users/alfongj/.config/yarn/global/node_modules/@context-labs/autodoc/dist/cli/commands/query/createChatChain.js:26:14)
    at makeChain (file:///Users/alfongj/.config/yarn/global/node_modules/@context-labs/autodoc/dist/cli/commands/query/createChatChain.js:47:23)
    at query (file:///Users/alfongj/.config/yarn/global/node_modules/@context-labs/autodoc/dist/cli/commands/query/index.js:25:19)
samheutmaker commented 1 year ago

You need to run doc user to configure you're query config.

Klaudioz commented 1 year ago

I interacted with one project without any issues few days ago. I came back today and I'm getting this error.

Should I run this command every time?

A user configureation already exists. It will be overwritten. Do you want to continue? (y/N)