Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -47,6 +47,16 @@ retriever = PineconeHybridSearchRetriever(
|
|
47 |
embeddings=embed, sparse_encoder=splade_encoder, index=index
|
48 |
)
|
49 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
# ========== PART 4 ==========
|
51 |
# RAG prompt
|
52 |
template = """You are an expert in HiPerGator (University of Florida's Super Computer) who has access to it's dense documentation. Please use the given context from the documentation to happily assist the user with their question:
|
|
|
47 |
embeddings=embed, sparse_encoder=splade_encoder, index=index
|
48 |
)
|
49 |
|
50 |
+
|
51 |
+
os.environ['LANGCHAIN_TRACING_V2'] = LANGCHAIN_TRACING_V2
|
52 |
+
|
53 |
+
os.environ['LANGCHAIN_ENDPOINT'] = LANGCHAIN_ENDPOINT
|
54 |
+
|
55 |
+
os.environ['LANGCHAIN_PROJECT'] = LANGCHAIN_PROJECT
|
56 |
+
|
57 |
+
os.environ['LANGCHAIN_API_KEY'] = LANGCHAIN_API_KEY
|
58 |
+
|
59 |
+
|
60 |
# ========== PART 4 ==========
|
61 |
# RAG prompt
|
62 |
template = """You are an expert in HiPerGator (University of Florida's Super Computer) who has access to it's dense documentation. Please use the given context from the documentation to happily assist the user with their question:
|