Coming soon: Baked-in intelligence to the HashiCorp developer portal.
This is an intentionally short and scattered, late project stage retrospective note-dump
at building and delivering an AI-powered feature, fully end-to-end. I’ll occasionally come back to make revisions here.
9/5
diff --git a/packages/application/posts/2023/09/04/hashicorp-ai-part-1.mdx b/packages/application/posts/2023/09/04/hashicorp-ai-part-1.mdxindex 6bf4142..934854e 100644
--- a/packages/application/posts/2023/09/04/hashicorp-ai-part-1.mdx+++ b/packages/application/posts/2023/09/04/hashicorp-ai-part-1.mdx@@ -42,7 +52,7 @@ This is a look at the feature.
- Rate-limiting
- Authentication and Authorization via an external team's identify service.
- Getting the feature in front of users — https://dev-portal-git-kwai-hashicorp.vercel.app/
-- Balancing pragamatism with excitement around the newness of AI+- Balancing pragmatism with excitement around the newness of AI - Keeping things simple
- Joining minds with cross-org initiatives around AI like the Terraform team
@@ -52,14 +62,14 @@ This is a look at the feature.
- Estimating costs
- Keeping costs at bay
- Learning new patterns and tech
- - This fun, but requires stepping out of immediate comfort zone+ - This is generally fun, but requires stepping out of immediate comfort zone - Server Sent Events were new to me
- Streaming, or working firsthand with streaming, was generally new to me
- Prompt engineering and not being sure if certain adjustments would improve response quality
- Wearing all the hats — engineering, a tiny bit of design, product, project management
- The newness of AI in the industry — the lack of established patterns and practices
makes success metrics not straightforwards to justify
-- Keeping technical complexity low. This includes net new tech.+- Keeping technical complexity low. This includes knowing when to omit or introduce new tech. - ✅ OpenAI V4 Node SDK
- ✅ PineconeDB SDK
- 🚫 Vercel AI SDK
@@ -70,13 +80,14 @@ This is a look at the feature.
{/* prettier-ignore */}
<Note type="cyan" fill>It is a meaningful skill to be able to navigate these waters.</Note>
-- Large organization beaurocracy and politics;- > This should not be misconstrued as _bad-mouthing_ or as a negative thing. It is a reality of- > the state of large organizations.-- Procurement — _\<Insert Futurama-Fry "take my money" meme\>_-- Legal things+- Large organization beaurocracy and politics+ {/* prettier-ignore */}<Note type="warning" fill>This should not be misconstrued as _bad-mouthing_ or as a negative thing. It is a reality of+ the state of large organizations.</Note>+- Getting procurement approval — _\<Insert Futurama-Fry "take my money" meme\>_+- Getting legal approval - The newness of AI in the industry leaves legal matters in a grey area
-- Compliance with onboarding third-party services+- Getting security approval+- Getting compliance approval; Onboarding third-party services - PineconeDB
- OpenAI
- Azure OpenAI service
@@ -84,9 +95,12 @@ This is a look at the feature.
# Learnings
- Do work in the open (at least internally)
+- AI is not magic.+- AI tools are rapidly becoming integrated into daily life.+ - Expectations will shift very quickly. - Azure OpenAI is mostly a drop-in replacement for OpenAI.
- Easier to procure and get approval
- for if your org already has Azure usage+ for, if your org already has Azure usage - Use OpenAI to convert text to vectors
- Store vectors in a vector database; use the vector database for similarity search
- OpenAI Docs are a good standard
@@ -108,11 +122,7 @@ This is a look at the feature.
# Todos
- Fine tuning
-- Tactics reducing token usage with long conversations--[Designing for Intelligence at GitHub Next: Patterns & Practices for Making AI powered Products][idan-youtube]-[Andrew Ng: Opportunities in AI - 2023][andrew-youtube]-[Open AI Dota 2][openai-dota]+- Tactics for reducing token usage when conversations reach longer lengths # Want early access?
AI tools are rapidly becoming integrated into daily life.
Expectations will shift very quickly.
Azure OpenAI is mostly a drop-in replacement for OpenAI.
Easier to procure and get approval
for, if your org already has Azure usage
Use OpenAI to convert text to vectors
Store vectors in a vector database; use the vector database for similarity search
OpenAI Docs are a good standard
Prompt engineering tactics — document citation.
constsystemMessage= {
role:"system",
content:`You are an AI assistant. Use the following context delimitted by triple quotes (") to respond to the user's input. """${context} """`,
};
constuserMessage= {
role:"user",
content:`What is nomad?`,
};