radicalxdev / kai-ai-backend

This is the Kai Teaching Assistant ai repo.
MIT License
12 stars 46 forks source link

Fix issue 38 #41

Closed AaronSosaRamos closed 2 weeks ago

AaronSosaRamos commented 2 weeks ago

This PR was made for solving Issue #38. It includes:

  1. All VertexAI and VertexAIEmbeddings are replaced with langchain_google_genai classes like GoogleGenerativeAI and GoogleGenerativeAIEmbeddings respectively. Quizzify: image Dynamo: image Kai Chat: image

  2. Instances of SA and PROJECT ID declarations were removed and replaced by the GOOGLE_API_KEY env variable.

  3. Implemented the .env.sample file for guiding new users about how to set their local .env file as a method for storing and retrieving the API key securely. image

  4. For optimizing both Dynamo and Quizzify performance, I've implemented PR #39 for Dynamo and PR #40 for Quizzify. Both are working appropriately.

  5. For accessing to the .env file, I've implemented python-dotenv so you can access to your .env variable values using: os.getenv("ENV_VARIABLE_NAME")