Spaces:
Runtime error
Runtime error
Upload indexer.py
Browse files9 unmodified lines1011121314151614 unmodified lines313233343536379 unmodified linesdef index_text():os.environ["NVIDIA_API_KEY"] ="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"nvidia_embeddings = NVIDIAEmbeddings(model="nvidia/llama-3.2-nv-embedqa-1b-v2",14 unmodified linesUse the provided context to answer the user query. Only use the provided context to answer the query.If you do not know the answer, or it's not contained in the provided context, respond with "I don't know"."""os.environ["GEMINI_API_KEY"] = "AIzaSyCP3iHlrhG-aDKaZlNKzYE3yXA-7pLGCxM"client = genai.Client()# Get relevant documentsretriever = vectorstore.as_retriever()9 unmodified lines101112131415161714 unmodified lines323334353637389 unmodified linesdef index_text():os.environ["NVIDIA_API_KEY"] =os.getenv("NVIDIA_API_KEY")nvidia_embeddings = NVIDIAEmbeddings(model="nvidia/llama-3.2-nv-embedqa-1b-v2",14 unmodified linesUse the provided context to answer the user query. Only use the provided context to answer the query.If you do not know the answer, or it's not contained in the provided context, respond with "I don't know"."""os.environ["GEMINI_API_KEY"] = os.getenv("GEMINI_API_KEY")client = genai.Client()# Get relevant documentsretriever = vectorstore.as_retriever()
indexer.py+3-2