MCPcopy
hub / github.com/llmware-ai/llmware / set_up_agreements

Function set_up_agreements

solutions/embeddings/using_pinecone_openai.py:63–73  ·  view source on GitHub ↗

This function makes sure that the sample files are loaded, and returns the path the Agreements folter. We need the path to the agreements folder for the ``Library`` object. If you have your own data, simply exchange this function with another one that returns a path to you sample files.

()

Source from the content-addressed store, hash-verified

61
62
63def set_up_agreements():
64 '''This function makes sure that the sample files are loaded, and returns the path the Agreements
65 folter. We need the path to the agreements folder for the ``Library`` object.
66
67 If you have your own data, simply exchange this function with another one that returns a path
68 to you sample files.
69 '''
70 logger.info('Setting up Aggreements')
71
72 sample_files_path = Setup().load_sample_files()
73 return os.path.join(sample_files_path, "Agreements")
74
75
76def set_up_library(

Callers 1

mainFunction · 0.85

Calls 2

SetupClass · 0.90
load_sample_filesMethod · 0.80

Tested by

no test coverage detected