Closed bsurendar0418 closed 7 months ago
Hi @bsurendar0418!
Yes, that's explained in chapter 3 of the book. Following best practices regarding safety, I am not committing my credentials to github. The config.py
file, which is not included in the repository, has a method set_environment()
that sets all the keys as environment variables like this:
Example config.py:
import os
def set_environment():
os.environ['OPENAI_API_KEY']='your-api-key-here'
Obviously, you'd put your API credentials here. Depending on the integration (Openai, Azure, etc) you need to add the corresponding API keys. The OpenAI API keys are the most often used across all the code.
Hope this helps.
Closing this. I've merged the explanations into the Readme.
Thanks Ben and team
On Tue, 12 Dec 2023, 3:03 am Ben Auffarth, @.***> wrote:
Closed #7 https://github.com/benman1/generative_ai_with_langchain/issues/7 as completed.
— Reply to this email directly, view it on GitHub https://github.com/benman1/generative_ai_with_langchain/issues/7#event-11216086521, or unsubscribe https://github.com/notifications/unsubscribe-auth/BEM44ZOYXBF33MR35CKK2WTYI532LAVCNFSM6AAAAABANYWAB2VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRGIYTMMBYGY2TEMI . You are receiving this because you were mentioned.Message ID: <benman1/generative_ai_with_langchain/issue/7/issue_event/11216086521@ github.com>
1)when running streamlit run chat_with_retrieval/app.py, getting error ModuleNotFoundError: No module named 'config'
2) could you please provide details how to run/test the programs?