sanjeevl10 commited on
Commit
8d85171
1 Parent(s): f0cd44d

update chainlit

Browse files
Files changed (2) hide show
  1. app.py +2 -1
  2. chainlit.md +5 -2
app.py CHANGED
@@ -108,12 +108,13 @@ rag_prompt = PromptTemplate.from_template(RAG_PROMPT_TEMPLATE)
108
  ### 1. CREATE HUGGINGFACE ENDPOINT FOR LLM
109
  hf_llm = HuggingFaceEndpoint(
110
  endpoint_url=HF_LLM_ENDPOINT,
111
- max_new_tokens=512,
112
  top_k=10,
113
  top_p=0.95,
114
  typical_p=0.95,
115
  temperature=0.01,
116
  repetition_penalty=1.03,
 
117
  huggingfacehub_api_token=os.environ["HF_TOKEN"]
118
  )
119
 
 
108
  ### 1. CREATE HUGGINGFACE ENDPOINT FOR LLM
109
  hf_llm = HuggingFaceEndpoint(
110
  endpoint_url=HF_LLM_ENDPOINT,
111
+ max_new_tokens=8192,
112
  top_k=10,
113
  top_p=0.95,
114
  typical_p=0.95,
115
  temperature=0.01,
116
  repetition_penalty=1.03,
117
+ streaming=True,
118
  huggingfacehub_api_token=os.environ["HF_TOKEN"]
119
  )
120
 
chainlit.md CHANGED
@@ -4,12 +4,15 @@
4
  - LLM: Llama3-8B running on Hugging Spaces
5
  - Embedding model: snowflake-arctic Embed Model
6
  - Infrastructure / Framework: LangChain
7
- - Vector Store: FIASS
8
  - UI: Chainlit
9
  - Deployment: Docker on HuggingFace Spaces
10
 
11
  # Model Evaluation
12
  - Evaluate your answers to the following questions
13
  - Q1 "What is Airbnb's 'Description of Business'?"
 
14
  - Q2 "What was the total value of 'Cash and cash equivalents' as of December 31, 2023?"
15
- - Q3 "What is the 'maximum number of shares to be sold under the 10b5-1 Trading plan' by Brian Chesky?"
 
 
 
4
  - LLM: Llama3-8B running on Hugging Spaces
5
  - Embedding model: snowflake-arctic Embed Model
6
  - Infrastructure / Framework: LangChain
7
+ - Vector Store: Qdrant
8
  - UI: Chainlit
9
  - Deployment: Docker on HuggingFace Spaces
10
 
11
  # Model Evaluation
12
  - Evaluate your answers to the following questions
13
  - Q1 "What is Airbnb's 'Description of Business'?"
14
+ - Answer:
15
  - Q2 "What was the total value of 'Cash and cash equivalents' as of December 31, 2023?"
16
+ - Answer:
17
+ - Q3 "What is the 'maximum number of shares to be sold under the 10b5-1 Trading plan' by Brian Chesky?"
18
+ - Answer: