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 dev.langchain4j.data.embedding.Embedding; | |
import dev.langchain4j.data.segment.TextSegment; | |
import dev.langchain4j.model.huggingface.HuggingFaceEmbeddingModel; | |
import dev.langchain4j.model.output.Response; | |
import io.github.cdimascio.dotenv.Dotenv; | |
import org.bson.BsonArray; | |
import org.bson.BsonDouble; | |
import java.util.ArrayList; | |
import java.util.List; |
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
========== | |
Page Title | |
========== | |
.. tabs-selector:: drivers | |
When you have content that is in a Drivers language tab... | |
And that content also contains code blocks that are in different languages... | |
The code blocks inherit the language from the parent tab language. |
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 SwiftUI | |
import RealmSwift | |
import AuthenticationServices | |
struct LoginView: View { | |
@State private var isLoggingIn = false | |
@State private var isInSignUpView = false | |
@EnvironmentObject var errorHandler: ErrorHandler | |
var body: some View { |
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
// This Gist goes with the article at http://dacharycarey.com/2023/11/01/hackathon-part-1/ | |
// This function is the endpoint's request handler. | |
exports = function({ formData, headers }, response) { | |
// Data can be extracted from the request as follows: | |
// Headers, e.g. {"Content-Type": ["application/json"]} | |
const contentTypes = headers["Content-Type"]; | |
// The "formData" here is the form data sent from Google Analytics |