Activity
Mon
Wed
Fri
Sun
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
What is this?
Less
More

Memberships

University of Code

Public • 3.5k • Free

5 contributions to University of Code
query error
I am currently trying to do Sonny old live streams(Let’s build an AI Help Bot with NEXT.JS 14! (Neon PostgreSQL, Clerk, AI Agent, OpenAI, IBM)) and i have gotten stuck with an issue, I keep getting this error: Error: Server response was missing for query 'CreateChatbot'. this is my code:
5
5
New comment Oct 5
query error
0 likes • Oct 3
there is this: DATA >>> undefined
0 likes • Oct 5
I got it to work it was the mutations I hade to change so created_at would be sent in like this:
Seeking Advice: Should I Join the 5-Day AI SaaS Challenge as a Beginner?
Hi everyone, I'm a beginner in web development and recently completed learning React. Although I haven't built many projects yet, I just came across this 5-day AI SaaS challenge. I'm really intrigued but not very confident about participating. Should I give it a shot? Any advice or tips would be much appreciated! Thanks in advance! 😊
8
17
New comment Jul 26
0 likes • Jul 26
I am also a beginner in react and i am giving it a try so i think you should to it will give the experience you need as well connect with others
Runn time error
how would i fix this error
1
7
New comment Jul 26
Runn time error
Hi Guys I am langchain.ts file and i am currently getting this error can someone help me please:
⨯ lib\langchain.ts (41:15) @ generateDocs ⨯ Error: Download URL not found at generateDocs (./lib/langchain.ts:36:15) at async generateEmbeddingsInPineconeVectoreStore (./lib/langchain.ts:79:27) at async generateEmbeddings (./actions/generateEmbeddings.ts:22:5) digest: "1824862194" 39 | 40 | if (!downloadUrl) { > 41 | throw new Error("Download URL not found") | ^ 42 | } 43 | 44 | console.log(`---Download URL fetched successfully: ${downloadUrl}---`)
2
5
New comment Jul 26
0 likes • Jul 26
import {ChatOpenAI} from "@langchain/openai" import { PDFLoader } from "@langchain/community/document_loaders/fs/pdf" import {RecursiveCharacterTextSplitter} from "langchain/text_splitter" import { OpenAIEmbeddings } from "@langchain/openai" import {createStuffDocumentsChain} from "langchain/chains/combine_documents" import { ChatPromptTemplate } from "@langchain/core/prompts" import {createRetrievalChain} from "langchain/chains/retrieval" import {createHistoryAwareRetriever} from "langchain/chains/history_aware_retriever" import { HumanMessage, AIMessage } from "@langchain/core/messages" import pineconeClient from "./pinecone" import {PineconeStore} from "@langchain/pinecone" import { PineconeConflictError } from "@pinecone-database/pinecone/dist/errors" import { Index, RecordMetadata } from "@pinecone-database/pinecone" import { adminDb } from "../firebaseAdmin" import { auth } from "@clerk/nextjs/server" const model = new ChatOpenAI({ apiKey: process.env.OPENAI_API_KEY, modelName: "gpt-4o" }) export const indexName="papafam" export async function generateDocs(docId: string){ const {userId} = await auth(); if (!userId){ throw new Error("User not found") } console.log("---fetching the download Url from Firebase...---") const firebaseRef = await adminDb .collection("users") .doc(userId). collection("files") .doc(docId) .get() const downloadUrl = firebaseRef.data()?.downloadUrl if (!downloadUrl) { throw new Error("Download URL not found") } console.log(`---Download URL fetched successfully: ${downloadUrl}---`) // Fetch the PDF from URL const response = await fetch(downloadUrl) // Load the pdf into a PdfDocument object const data = await response.blob() // load the pdf document console.log("---Loading PDF document..---") const loader = new PDFLoader(data) const docs =await loader.load() //split the doc into smaller parts console.log("---Splitting the document into smaller parts...---") const splitter = new RecursiveCharacterTextSplitter()
0 likes • Jul 26
ok will do thank you
How to contact an admin
Is there an admin I can talk to
3
3
New comment Jul 25
1 like • Jul 25
ok thank you so much
1-5 of 5
Maison Chetty
2
8points to level up
@maison-chetty-4043
I am currently studying Information Technology and just looking to gain experience while meeting new people

Active 49d ago
Joined Jul 24, 2024
powered by