This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| from typing import List | |
| from enum import Enum | |
| # Create a Enum for the different types of properties | |
| class Property(Enum): | |
| BLACK = 'black' | |
| RED = 'red' | |
| GREEN = 'green' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Create all imports | |
| import os | |
| from langchain.document_loaders.figma import FigmaFileLoader | |
| from langchain.chat_models import ChatOpenAI | |
| from langchain.indexes import VectorstoreIndexCreator | |
| from langchain.prompts.chat import ( | |
| ChatPromptTemplate, | |
| SystemMessagePromptTemplate, | |
| HumanMessagePromptTemplate, |