Mr-Cool commited on
Commit
41a2f7d
1 Parent(s): ddca922

small update

Browse files
Files changed (1) hide show
  1. functions.py +4 -0
functions.py CHANGED
@@ -9,6 +9,10 @@ from qdrant_client.http.models import Distance, VectorParams
9
  from langchain.prompts import ChatPromptTemplate
10
  import tiktoken
11
  import os
 
 
 
 
12
 
13
  ### SETUP FUNCTIONS ###
14
  def tiktoken_len(text):
 
9
  from langchain.prompts import ChatPromptTemplate
10
  import tiktoken
11
  import os
12
+ from dotenv import load_dotenv
13
+
14
+ # Load environment variables from .env file
15
+ load_dotenv()
16
 
17
  ### SETUP FUNCTIONS ###
18
  def tiktoken_len(text):