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
| def answer_question(query) | |
| # Generate embedding for the question | |
| query_embedding = generate_query_embedding(query) | |
| # Search for similar code | |
| results = qdrant_client.points.search( | |
| collection_name: "code_chunks", | |
| vector: query_embedding, | |
| limit: 5, | |
| with_payload: true |
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
| # Create Rails App | |
| ``` | |
| rails new app_name -d postgres | |
| ``` | |
| ### cp config/database.example.yml | |
| ``` | |
| rake db:create | |
| ``` |
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
| require 'json' | |
| require 'openssl' | |
| require 'net/http' | |
| require 'uri' | |
| require 'cgi' | |
| class ClientCertTestError < StandardError; end | |
| class ClientCertClient | |
| attr_accessor :use_client_cert, :cacart, :client_cert_path, :client_cert_pass |