Skip to content

Commit

Permalink
Fixes/actions refactor and pinecone working (#83)
Browse files Browse the repository at this point in the history
1. Included OpenAI Organization as part of the env vars, and as header
in the open ai requests
2. Included pinecone index and namespace as env vars, and updated the
documentation on how to create the index.
3. Refactor the actions file, trying to debug what was wrong on that
file was impossible.
4. if currentUserReference != null, notifications not triggering.
  • Loading branch information
akshaynarisetti committed Apr 28, 2024
2 parents 76bf6a6 + 2265449 commit 4f22fed
Show file tree
Hide file tree
Showing 8 changed files with 357 additions and 327 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -78,3 +78,4 @@ apps/AppWithWearable/ios/Runner/GeneratedPluginRegistrant.h
apps/AppWithWearable/ios/Runner/GeneratedPluginRegistrant.m
apps/AppWithWearable/macos/Flutter/ephemeral/flutter_export_environment.sh
apps/AppWithWearable/macos/Flutter/ephemeral/Flutter-Generated.xcconfig
apps/AppStandalone/ios/Runner/RunnerDebug.entitlements
7 changes: 6 additions & 1 deletion apps/AppStandalone/.env.template
@@ -1,10 +1,15 @@
OPENAI_API_KEY=
OPENAI_ORGANIZATION=
PINECONE_API_KEY=
PINECONE_INDEX_URL=
PINECONE_INDEX_NAMESPACE=

FIREBASE_API_KEY=
FIREBASE_AUTH_DOMAIN=
FIREBASE_PROJECT_ID=
FIREBASE_STORAGE_BUCKET=
FIREBASE_MESSAGE_SENDER_ID=
FIREBASE_APP_ID=
FIREBASE_MEASUREMENT_ID=
FIREBASE_MEASUREMENT_ID=
SUPABASE_URL=
SUPABASE_ANON_KEY=
17 changes: 13 additions & 4 deletions apps/AppStandalone/README.md
Expand Up @@ -57,16 +57,25 @@ Before starting, make sure you have the following installed:
```
Follow the prompts to select your project and target platforms (Android, iOS, Web).

5. **API Keys**:

5. **Pinecone Index**:
- If you don't have one yet, create a new [Pinecone](https://www.pinecone.io/) account.
- Navigate to the Pinecone Console and initiate a new index.
- Define the index name.
- Set the number of dimensions to `1,536`, as required for the `text-embedding-3-small` embeddings model.
- Keep the remaining settings as default and proceed with creation.
- Retrieve your index URL and namespace values, and update them in the environment variables file.

6. **API Keys**:
Add your Firebase and other necessary API keys to the `.env` file.

6. **Run Build Runner**:
7. **Run Build Runner**:
Generate necessary files with Build Runner:
```
dart run build_runner build
```

7. **Configure Xcode**:
8. **Configure Xcode**:
- Open your iOS project in Xcode:
```
open ios/Runner.xcworkspace
Expand Down Expand Up @@ -106,7 +115,7 @@ Before starting, make sure you have the following installed:
),
```

8. **Run the App**:
9. **Run the App**:
- Select your target device in Xcode or Android Studio.
- Run the app.

Expand Down

0 comments on commit 4f22fed

Please sign in to comment.