adriatic / fixie-logs

Documenting the research on https://www.fixie.ai/
0 stars 0 forks source link

Quickstart: Fixie Sidekicks #4

Open adriatic opened 11 months ago

adriatic commented 11 months ago

Starting again (after some fixes were made on 10/29/2023 +) Using the text Quickstart: Fixie Sidekicks:

My profile

image

API token in .env

image



App deployed at https://console.fixie.ai/agents/de02102a-7770-4fe3-aca4-2da7fdc151ff


image
adriatic commented 11 months ago

Local Development and Testing

npx fixie@latest serve

🦊 Serving agent adriatic/fixie-sidekick-template...
🌱 Building agent at /Users/nik/dev/work/fixie/fixie-sidekick-template...
npm notice 
npm notice 📦  fixie-sidekick-template@0.1.0
npm notice === Tarball Contents === 
npm notice 1.1kB LICENSE                 
npm notice 512B  README.md               
npm notice 86B   dist/index.d.ts         
npm notice 1.8kB dist/index.js           
npm notice 95B   dist/system-message.d.ts
npm notice 3.2kB dist/system-message.js  
npm notice 637B  package.json            
npm notice === Tarball Details === 
npm notice name:          fixie-sidekick-template                 
npm notice version:       0.1.0                                   
npm notice filename:      fixie-sidekick-template-0.1.0.tgz       
npm notice package size:  3.5 kB                                  
npm notice unpacked size: 7.5 kB                                  
npm notice shasum:        a6bb06cd1a7f5c7fdf8680f01505683c1e0274cb
npm notice integrity:     sha512-oK7fPwWLggsp9[...]HzSFO3YdloYzg==
npm notice total files:   7                                       
npm notice 
fixie-sidekick-template-0.1.0.tgz
🌱 Running: npx --package=@fixieai/sdk fixie-serve-bin --packagePath ./dist/index.js --port 8181
🌱 Agent process running at PID: 44055
🌱 Watching /Users/nik/dev/work/fixie/fixie-sidekick-template for changes...
🚇 Starting tunnel process...
🌱 Agent child process started with PID [44055]
🥡 Replacing current agent revision f97fad3a
🌱 Agent stdout: AI.JSX agent listening on http://0.0.0.0:8181.
🚇 Current tunnel URL is: https://27bc109c461ca4.lhr.life
🥡 Created temporary agent revision e3660c4c
🥡 Agent fixie-sidekick-template is running at: https://console.fixie.ai/agents/de02102a-7770-4fe3-aca4-2da7fdc151ff

Running https://console.fixie.ai/agents/de02102a-7770-4fe3-aca4-2da7fdc151ff

Clearly this app knows about foxes:

image

Note that the regenerate button interferes with the agent's response!


Note: this local app does not know what is Snyk - unlike the deployed app. Shouldn't both app have the same context (collection of documents?

image

WARNING

Trying to shutdown this agent running agent via Ctrl-C signal, had to do it more than once:

Got Ctrl-C - cleaning up and exiting.
🌱 Agent child process [44055] exited with code null
^CGot Ctrl-C - cleaning up and exiting.
Got Ctrl-C - cleaning up and exiting.
🥡 Restoring original agent revision f97fad3a
🥡 Restoring original agent revision f97fad3a
🥡 Deleting temporary agent revision 2ce098cf
🥡 Deleting temporary agent revision 2ce098cf

^CGot Ctrl-C - cleaning up and exiting.
Got Ctrl-C - cleaning up and exiting.
🥡 Restoring original agent revision f97fad3a
🥡 Restoring original agent revision f97fad3a
🥡 Restoring original agent revision f97fad3a
🥡 Failed to delete temporary agent revision: No such revision: 2ce098cf
🥡 Failed to delete temporary agent revision: No such revision: 2ce098cf
🥡 Failed to delete temporary agent revision: No such revision: 2ce098cf
🥡 Restoring original agent revision f97fad3a
🥡 Failed to delete temporary agent revision: No such revision: 2ce098cf
adriatic commented 11 months ago

Did not test https://docs.ai-jsx.com/sidekicks/sidekicks-quickstart#method-1-via-the-rest-api-using-curl

adriatic commented 11 months ago

Sidekicks Document Q&A

Creating a Corpus

{
  "corpus": {
    "corpusId": "f6b574ee-5ca4-4a3b-b94d-c5ecfb7128ca",
    "displayName": "My test corpus",
    "created": "2023-11-02T01:43:43.488733Z",
    "modified": "2023-11-02T01:43:43.489288Z",
    "stats": {
      "status": "CORPUS_STATUS_EMPTY",
      "numChunks": "0",
      "numDocs": "0",
      "numVectors": "0"
    },
    "jobCallbacks": [
      {
        "stateFilter": [
          "JOB_STATE_COMPLETED"
        ],
        "email": {
          "to": [
            {
              "name": "Nikolaj",
              "email": "nik@congral.us"
            }
          ]
        },
        "corpusStatusFilter": [
          "CORPUS_STATUS_READY"
        ],
        "rateLimit": {
          "numRequests": 1,
          "window": "3122064000s"
        }
      }
    ],
    "owner": "",
    "description": "",
    "public": false
  }
}

This seems fine.

As there are several unclear details that would be better addressed as issues in the actual Github document: https://github.com/fixie-ai/ai-jsx I will also create more issues as needed (instead of documenting them in this log).

adriatic commented 11 months ago

Part 1 - Introduction to Sidekicks

This section does not have any testing log

Part 2 - Document Question + Answering (DocsQA)

Run some queries

no issues here

adriatic commented 11 months ago

Part 3 - Creating the System Message

Created this PR

Part 4 - Tools

Adding a tool to access the GitHub API