Dust Community Icon

Github Sync Issue: Agent Referring to Non-Existing Files

·
·

Github Sync - Agent referencing non-existing files Hello! I'm trying to configure an agent to help solving bug reports, ultimately suggesting solutions by referencing files to look into. I've turned on the Github Code Sync, but the Agent keeps referencing non existing files. Am I missing something? Thanks for your help!

  • Avatar of Abboud Hammour
    Abboud Hammour
    ·
    ·

    Hi Lucas Gérard! Might need a bit more information. Can you share a URL of a conversation where this is happening? And when you click "Tools Inspection" can you see what files it is actually pulling in ?

  • Avatar of Lucas Gérard
    Lucas Gérard
    ·
    ·

    Hello Abboud Hammour, thanks for getting back to me! Sure, here is my last example, referencing app/controllers/api/v1/organizer/events_controller.rb that does not exist in our codebase. Regarding "Tools Inspection", could you please guide me a bit more? I could not find such option in the interface, thanks!

  • Avatar of Abboud Hammour
    Abboud Hammour
    ·
    ·

    Thanks! So while you created the agent, it is not currently connected to any data (and without that, LLMs love to invent stuff). In order to connect it to your repo:

    • After setting up your agent's instructions, click on the "Tools" Tab

    • Click on "Add a Tool"

    • Choose "Search Tool" - this gives it the ability to search the data you give it access to

    • Select the relevant repos you want to give it access to (remember, only give it access to what it may need, anything else might add unneeded noise)

    See here for an example: https://docs.dust.tt/docs/quickstart-agent Also another note! I see you used a template which is a great start, but you'll see some parts of the template have placeholders like [include set up steps], be sure to either fill those in or remove them. You are free to put whatever you like in the instructions, but the more specific you are the better

  • Avatar of Abboud Hammour
    Abboud Hammour
    ·
    ·

    Ah and re: Tools Inspection - this will appear under the agent's name when you ask it a question and it has a tool (since yours did not, it didn't appear).

  • Avatar of Lucas Gérard
    Lucas Gérard
    ·
    ·

    Hello Abboud Hammour, thanks for your help: it worked! Just got a bit confused by the settings that felt redundant, but I understand now the different levels of permissions.