-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Club vector embeddings + Pinecone seeding/testing logic #292
Closed
michael-brennan2005
wants to merge
11
commits into
main
from
SAC-31-Add-vector-embedding-to-CREATE-UPDATE-DELETE-for-Club
Closed
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
3f82a25
Seed clubs (and users) are now in the database
michael-brennan2005 6293520
stuff for tonight - club data has been uploaded to pinecone
michael-brennan2005 ce78e5f
SEARCH!
michael-brennan2005 4912147
stash
michael-brennan2005 6ef5995
stash
michael-brennan2005 bec6c1b
modified crud endpoints
zacklassetter b4f722e
Merge branch 'search-demo' into SAC-31-Add-vector-embedding-to-CREATE…
michael-brennan2005 5341d08
fix: merge conflict issues
michael-brennan2005 3733fe9
fix: cleanup + ensure tests pass
michael-brennan2005 af80d9e
Merge branch 'main' into SAC-31-Add-vector-embedding-to-CREATE-UPDATE…
michael-brennan2005 ef4b700
fixes
michael-brennan2005 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file not shown.
This file contains 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
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ import ( | |
|
||
"github.com/GenerateNU/sac/backend/src/config" | ||
"github.com/GenerateNU/sac/backend/src/middleware" | ||
"github.com/GenerateNU/sac/backend/src/search" | ||
"github.com/GenerateNU/sac/backend/src/server/routes" | ||
"github.com/GenerateNU/sac/backend/src/services" | ||
"github.com/GenerateNU/sac/backend/src/utilities" | ||
|
@@ -25,8 +26,7 @@ import ( | |
// @contact.email [email protected] and [email protected] | ||
// @host 127.0.0.1:8080 | ||
// @BasePath / | ||
// @schemes http https | ||
func Init(db *gorm.DB, settings config.Settings) *fiber.App { | ||
func Init(db *gorm.DB, pinecone search.PineconeClientInterface, settings config.Settings) *fiber.App { | ||
app := newFiberApp(settings.Application) | ||
|
||
validate, err := utilities.RegisterCustomValidators() | ||
|
@@ -43,7 +43,7 @@ func Init(db *gorm.DB, settings config.Settings) *fiber.App { | |
routes.Auth(apiv1, services.NewAuthService(db, validate), settings.Auth, authMiddleware) | ||
routes.UserRoutes(apiv1, db, validate, authMiddleware) | ||
routes.Contact(apiv1, services.NewContactService(db, validate), authMiddleware) | ||
routes.ClubRoutes(apiv1, db, validate, authMiddleware) | ||
routes.ClubRoutes(apiv1, db, pinecone, validate, authMiddleware) | ||
routes.Tag(apiv1, services.NewTagService(db, validate), authMiddleware) | ||
routes.CategoryRoutes(apiv1, db, validate, authMiddleware) | ||
routes.Event(apiv1, services.NewEventService(db, validate), authMiddleware) | ||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Useless assignment to local variable Warning