We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a2987a commit ea544e9Copy full SHA for ea544e9
observability-tutorial-typescript/index.ts
@@ -6,9 +6,9 @@ import { HoneyHiveTracer } from 'honeyhive';
6
dotenv.config();
7
8
// Initialize clients
9
-const openai = new OpenAI({ apiKey: process.env.OPENAI_API_KEY });
+const openai = new OpenAI();
10
const pc = new Pinecone();
11
-const index = pc.index("chunk-size-512");
+const index = pc.index("your-index-name");
12
13
async function embedQuery(query: string): Promise<number[]> {
14
const res = await openai.embeddings.create({
0 commit comments