Cisco API Documentations Is Now Tailored for Gen AI Applied sciences


Developer expertise adjustments quickly. Many builders and the Cisco DevNet neighborhood make the most of Generative AI instruments and language fashions for code technology and troubleshooting.

Higher knowledge – higher mannequin completion

The primary problem for GenAI customers is discovering legitimate knowledge for his or her prompts or Vector Databases. Builders and engineers have to care concerning the knowledge they plan to make use of for LLMs/GenAI interplay.

OpenAPI documentations is now out there to obtain

The OpenAPI documentation is a specification that defines an ordinary method to describe RESTful APIs, together with endpoints, parameters, request/response codecs, and authentication strategies, selling interoperability and ease of integration.

We at Cisco DevNet care about builders’ expertise and need to make your expertise working with Cisco APIs environment friendly and with minimal growth/testing prices.
You could find hyperlinks to OpenAPI documentation in JSON/YAML format right here: Open API Documentation web page and Search associated product API – Navigate to API Reference -> Overview part in left-side menu

Be aware: Some API documentation can include a number of OpenAPI Paperwork

For which function you should use associated OpenAPI documentation as part of immediate/RAG:

  • Assemble code or script that makes use of associated Cisco API
  • Discover associated API operations or ask to repair current code utilizing the knowledge within the API documentation
  • Create integrations with Cisco merchandise by way of API
  • Create and take a look at AI brokers
  • Make the most of associated Cisco OpenAPI documentation regionally or utilizing authorised AI instruments in your group.

Structured vs Unstructured knowledge

I’ve in contrast two LLM mannequin completions with a immediate that incorporates two elements.
The primary a part of the immediate was the identical and contained the next info:

Based mostly on the next API documentation, please write step-by-step directions that may assist routinely tag roaming computer systems utilizing Umbrella API.
Excessive-level workflow description:

  1. Add API Key
  2. Generate OAuth 2.0 entry token
  3. Create tag
  4. Get the record of roaming computer systems and determine associated ‘originId’
  5. Add tag to gadgets.

API documentation:

Second half:

  • In a single case, it incorporates copy and paste knowledge straight from the doc,
  • The opposite one incorporates LLM-friendly structured knowledge like OpenAPI paperwork pasted one after the other

Oleksii API GenAI 1

 

A part of CDO OpenAPI documentation

model completions with OpenAPI doc

Claude 3 Sonnet mannequin completion. Immediate with OpenAPI paperwork 

 

model completions with copy-paste doc

Claude 3 Sonnet mannequin completion. Immediate with copy and paste knowledge

Advantages of utilizing LLM-friendly documentation as part of the immediate

I’ve discovered that mannequin output was extra correct after we used OpenAPI paperwork as part of a immediate. API endpoints supplied in every step have been extra correct. Suggestions in sections like “Get Checklist of Roaming Computer systems” include higher and extra optimum directions and API operations.

I’ve examined this with different foundational fashions, and mannequin completion was extra correct once I used the OpenAPI doc as part of the immediate.

Some hyperlinks on the Cisco APIs OpenAPI Paperwork

 

Share:



Supply hyperlink

We will be happy to hear your thoughts

Leave a reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Easy Click Express
Logo
Compare items
  • Total (0)
Compare
0
Shopping cart