id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
C++_Classes_Templates/15079_617_0.txt
> I disagree. Compile should not be limited to only values that can be const. > Some intelligent guy said that
C++_Classes_Templates/1157_535_0.txt
Bold
C++_Classes_Templates/15079_191_0.txt
1. **How would we define constant (I asked this previously here: [ Proposal: Compile time expressions #12238 (comment) ](https://github.com/dotnet/roslyn/issues/12238#issuecomment-229310364) and here: [ Proposal: Compile time expressions #12238 (comment) ](https://github.com/dotnet/roslyn/issues/12238#issuecomment...
C++_Classes_Templates/1157_176_0.txt
---
C++_Classes_Templates/15079_708_0.txt
[ ![@jrmoreno1](https://avatars.githubusercontent.com/u/13475296?s=80&v=4) ](/jrmoreno1)
C++_Classes_Templates/1157_42_0.txt
* [ Notifications ](/login?return_to=%2Fdotnet%2Fcsharplang) * [ Fork 993 ](/login?return_to=%2Fdotnet%2Fcsharplang) * [ Star 10.9k ](/login?return_to=%2Fdotnet%2Fcsharplang)
C++_Classes_Templates/1157_86_0.txt
# {{title}}
C++_Classes_Templates/1157_201_0.txt
[ ![](https://avatars.githubusercontent.com/u/4979268?s=64&v=4) GeirGrusom ](/GeirGrusom) Nov 29, 2017
C++_Classes_Templates/15079_404_0.txt
**[ gordanr ](/gordanr) ** commented Nov 11, 2016
C++_Classes_Templates/1157_464_0.txt
Beta Was this translation helpful? Give feedback.
C++_Classes_Templates/Constexprlikekeyword_99_0.txt
PHP
C++_Classes_Templates/1157_534_0.txt
Heading
C++_Classes_Templates/1157_540_0.txt
* * *
C++_Classes_Templates/C++_Classes_0_3.txt
guage/memory_model "cpp/language/memory model") [ Character sets and encodings ](/w/cpp/language/charset "cpp/language/charset") [ Phases of translation ](/w/cpp/language/translation_phases "cpp/language/translation phases") [ The ` main ` function ](/w/cpp/language/main_function "cpp/language/main function") [...
C++_Classes_Templates/15079_135_0.txt
**[ iam3yal ](/iam3yal) ** commented Nov 8, 2016
C++_Classes_Templates/Constexprlikekeyword_35_0.txt
**What I have tried:**
C++_Classes_Templates/15079_214_0.txt
Done! 😉
C++_Classes_Templates/1157_20_0.txt
* [ Topics ](https://github.com/topics) * [ Trending ](https://github.com/trending) * [ Collections ](https://github.com/collections)
C++_Classes_Templates/1157_225_0.txt
1 You must be logged in to vote
C++_Classes_Templates/15079_383_0.txt
Console.WriteLine("This app was built on January 1, 2016 by TonyValenti on TonyPC");
C++_Classes_Templates/15079_150_0.txt
Sorry, something went wrong.
C++_Classes_Templates/15079_314_0.txt
[ ![@iam3yal](https://avatars.githubusercontent.com/u/3756641?s=80&u=b853037d90aa1b20e6864477d91be927aeed062c&v=4) ](/iam3yal)
C++_Classes_Templates/1157_371_0.txt
---
C++_Classes_Templates/15079_266_0.txt
All reactions
C++_Classes_Templates/15079_560_0.txt
All reactions
C++_Classes_Templates/15079_742_0.txt
**[ jrmoreno1 ](/jrmoreno1) ** commented Feb 11, 2017
C++_Classes_Templates/1157_214_0.txt
Quote reply
C++_Classes_Templates/15079_428_0.txt
* ❤️ 1 reaction
C++_Classes_Templates/15079_380_0.txt
var BuildDate = const DateTime.Now; var BuildUser = const System.Security.Principal.WindowsIdentity.GetCurrent().Name; var BuildMachine = const System.Environment.MachineName;
C++_Classes_Templates/Constexprlikekeyword_53_0.txt
[ Benktesh Sharma ](/script/Membership/View.aspx?mid=11073155) 28-Jul-19 9:48am
C++_Classes_Templates/1157_185_0.txt
Something went wrong.
C++_Classes_Templates/1157_150_0.txt
1 You must be logged in to vote
langchain/textembedding_16_0.txt
* [ Embedding models ](/docs/modules/data_connection/text_embedding/)
langchain/retrievalinlangchain_55_0.txt
matched_docs = db.similarity_search(query=query, k=5)
langchain/langchaindecodedpart_26_0.txt
These code samples simply pass a single and multiple string inputs to the ` embed_query ` and ` embed_documents ` methods respectively. It's more likely that the latter would be used to load and retrieve information from uploaded documents. However, that requires knowledge of additional LangChain modules like document ...
langchain/retrievalinlangchain_26_0.txt
from langchain.embeddings import OpenAIEmbeddings
langchain/LangChain_12_1.txt
ed as beta. This is for two reasons: 1. Most functionality (with some exceptions, see below) are not production ready 2. Most functionality (with some exceptions, see below) work with Legacy chains, not the newer LCEL syntax. The main exception to this is the ` ChatMessageHistory ` functionality. This function...
langchain/langchain101part3bta_8_0.txt
#### Frequently Used, Contextual References
langchain/langchain101part3bta_4_0.txt
[ AI Community ](https://members.towardsai.net/) [ AI Community ](https://members.towardsai.net/)
langchain/textembedding_64_0.txt
embeddings = embeddings_model.embed_documents( [ "Hi there!", "Oh, hello!", "What's your name?", "My friends call me World", "Hello World!" ] ) len(embeddings), len(embeddings[0])
langchain/LangChain_31_1.txt
Bind runtime args Sometimes we want to invoke a Runnable within a Runnable sequence with ](/docs/expression_language/how_to/binding) ## [ 📄️ Configure chain internals at runtime Oftentimes you may want to experiment with, or even expose to the end ](/docs/expression_language/how_to/configure) ## [ 📄️ Create a ru...
langchain/langchain101part3bta_232_0.txt
PMB 99625,
langchain/langchain101part3bta_248_0.txt
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and unde...
langchain/LangChain_16_0.txt
Skip to main content [ ![🦜️🔗 Langchain](/img/brand/wordmark.png) ![🦜️🔗 Langchain](/img/brand/wordmark-dark.png) ](/) [ Docs ](/docs/get_started/introduction) [ Use cases ](/docs/use_cases) [ Integrations ](/docs/integrations/platforms/) [ Guides ](/docs/guides/debugging) [ API ](https://api.python.langchain.com) ...
langchain/langchain101part3bta_220_0.txt
May 01, 2024
langchain/LangChain_28_1.txt
Use GPT-3, GPT-4 to Reference your own Data | ` OpenAI Embeddings ` Intro ](https://youtu.be/veV2I-NEjaM) by [ StarMorph AI ](https://www.youtube.com/@starmorph) * [ The easiest way to work with large language models | Learn LangChain in 10min ](https://youtu.be/kmbS6FDQh7c) by [ Sophia Yang ](https://www.youtube.co...
langchain/LangChain_41_18.txt
etsevenema) [ @ wietsevenema ](https://github.com/wietsevenema) [ ![](https://avatars.githubusercontent.com/u/62583018?u=965202caa3cfc09516af257f0affdf4aae7cdd43&v=4) ](https://github.com/akashAD98) [ @ akashAD98 ](https://github.com/akashAD98) [ ![](https://avatars.githubusercontent.com/u/93204286?u=4b965586800fef...
langchain/langchain101part3bta_82_0.txt
![](https://miro.medium.com/v2/resize:fit:1000/1*38ultP6xIzWaJ-iA--RI2Q.png) Vectorstore in action with LLM and Embedding Model
langchain/langchaindecodedpart_3_0.txt
By [ alphasec ](/author/alphasec/) in [ AI/ML ](https://alphasec.io/tag/ai- ml/) — Apr 19, 2023
langchain/langchain101part3bta_188_0.txt
[ ![Best Laptops for Machine Learning, Data Science, and Deep Learning](https://cdn- images-1.medium.com/max/2600/1*uslR7oo6jjIr1xCD2I3ktg.png) ](https://towardsai.net/p/news/best-laptops-for-machine-learning-deep- learning-data-science-ml-f55602197593 "Best Laptops for Deep Learning, Machine Learning \(ML\), and Data ...
langchain/textembedding_73_0.txt
[ Previous Split by tokens ](/docs/modules/data_connection/document_transformers/split_by_token/) [ Next Text embedding models ](/docs/modules/data_connection/text_embedding/)
langchain/textembedding_75_0.txt
Community
langchain/langchaindecodedpart_51_0.txt
# Re-convert the tokens to a string before embedding truncated_text = encoding.decode(tokens)
langchain/langchain101part3bta_171_0.txt
### [ The Role of AI and Algorithms in Social Media ](https://towardsai.net/p/machine-learning/the-role-of-ai-and-algorithms-in- social-media)
langchain/retrievalinlangchain_19_0.txt
Share
langchain/LangChain_38_1.txt
* * * #### Help us out by providing feedback on this documentation page: * Books and Handbooks * Tutorials * by Greg Kamradt * by Sam Witteveen * by James Briggs * by Prompt Engineering * by Mayo Oshin * by 1 little Coder * Courses * Featured courses on Deeplearning.AI ...
langchain/langchain101part3bta_76_0.txt
![](https://miro.medium.com/v2/resize:fit:1000/1*ePBV5kOBm_doXpk9KMpF_Q.png)
langchain/LangChain_17_4.txt
msg in anthropic.astream(prompt): print(msg, end="", flush=True) prompt = ChatPromptTemplate.from_messages( [("system", "Tell me a long story about {topic}")] ) # Can define custom chains chain = prompt | RunnableMap({ "openai": openai, "ant...
langchain/langchain101part3bta_59_0.txt
We’ll take the same sentences we’ve discussed in our previous lecture.
langchain/langchain101part3bta_245_0.txt
Manage consent
langchain/LangChain_41_9.txt
//github.com/OwenPendrighElliott) [ @ OwenPendrighElliott ](https://github.com/OwenPendrighElliott) [ ![](https://avatars.githubusercontent.com/u/31382824?u=d1821a68aff738b1749ad8b8d09b8957eb880d2c&v=4) ](https://github.com/Adi8885) [ @ Adi8885 ](https://github.com/Adi8885) [ ![](https://avatars.githubusercontent.c...
langchain/langchaindecodedpart_60_0.txt
](/langchain-decoded-the-muggles-guide-to-langchain/)
langchain/langchain101part3bta_42_0.txt
According to the table, from a “row comparison perspective,” we can find similar transport kinds: an electric car and a helicopter, a bicycle and an e-scooter, an airplane and a bullet train.
langchain/textembedding_38_0.txt
If you'd prefer not to set an environment variable you can pass the key in directly via the ` api_key ` named parameter when initiating the OpenAI LLM class:
langchain/textembedding_65_0.txt
(5, 1536)
langchain/LangChain_22_4.txt
get_relevant_documents( "What did the president say about Ketanji Jackson Brown" ) pretty_print_docs(compressed_docs) Document 1: Tonight. I call on the Senate to: Pass the Freedom to Vote Act. Pass the John Lewis Voting Rights Act. And while you’re at it, pass th...
langchain/langchain101part3bta_206_0.txt
[ Latest ](https://towardsai.net/ai/l) , [ Machine Learning ](https://towardsai.net/ai/machine-learning) , [ Newsletter ](https://towardsai.net/ai/newsletter)
langchain/langchaindecodedpart_25_0.txt
query_result = embeddings.embed_query(text) print(query_result) print(len(query_result))
langchain/LangChain_27_3.txt
import getpass import os os.environ["TOGETHER_API_KEY"] = getpass.getpass() from langchain_together import Together model = Together( base_url="https://api.together.xyz/v1", api_key=os.environ["TOGETHER_API_KEY"], model="mistralai/Mi...
langchain/retrievalinlangchain_41_0.txt
pip install chromadb qdrant-client faiss-cpu
langchain/langchain101part3bta_145_0.txt
## LangChain 101: Part 3a. Talking to Documents: Load, Split and simple RAG with LCEL
langchain/retrievalinlangchain_3_0.txt
[ ](/?source=---two_column_layout_nav----------------------------------)
langchain/LangChain_7_1.txt
omprehensive guides including: * [ Building a custom agent ](/docs/modules/agents/how_to/custom_agent) * [ Streaming (of both intermediate steps and tokens ](/docs/modules/agents/how_to/streaming) * [ Building an agent that returns structured output ](/docs/modules/agents/how_to/agent_structured) * Lots functi...
langchain/retrievalinlangchain_67_0.txt
[ ](/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2F_%2Fvote%2Fp%2Ff8be7fb0508a&operation=register&redirect=https%3A%2F%2Fmedium.com%2F%40sushmithabhanu24%2Fretrieval- in-langchain-part-3-text-embeddings-and-vector- stores-f8be7fb0508a&user=Sushmitha&userId=4050e369ea27&source=-----f8be7fb0508a ---------------------clap...
langchain/langchain101part3bta_167_0.txt
[ ifttt-user ](https://towardsai.net/p/author/ifttt-user)
langchain/langchain101part3bta_134_0.txt
# be as descriptive as you can, as this is passed to llm metadata_field_info = [ AttributeInfo( name="source", description="Documents in use, for example `SOURCE_1`", type="string", ) ]
langchain/langchain101part3bta_222_0.txt
##### [ Unboxing Loss Functions in YOLOv8 ](https://towardsai.net/p/machine- learning/unboxing-loss-functions-in-yolov8 "Unboxing Loss Functions in YOLOv8")
langchain/LangChain_37_2.txt
to help the user overcome some of the limitations of the distance-based similarity search. Provide these alternative questions separated by newlines. Original question: {question}""", ) llm = ChatOpenAI(temperature=0) # Chain llm_chain = LLMChain(llm=llm, p...
langchain/retrievalinlangchain_10_0.txt
[ ![Sushmitha](https://miro.medium.com/v2/resize:fill:88:88/1*rYoF-8kFdCjny8cRfJMQTw.jpeg) ](/@sushmithabhanu24?source=post_page----- f8be7fb0508a--------------------------------)
langchain/textembedding_69_0.txt
embedded_query = embeddings_model.embed_query("What was the name mentioned in the conversation?") embedded_query[:5]
langchain/langchaindecodedpart_59_0.txt
#### LangChain Decoded: The Muggles Guide to LangChain
langchain/langchain101part3bta_165_0.txt
[ Data Visualization ](https://towardsai.net/ai/data-visualization) , [ Latest ](https://towardsai.net/ai/l) , [ Machine Learning ](https://towardsai.net/ai/machine-learning)
langchain/LangChain_22_3.txt
ethod is deprecated, instead pass an output parser directly to LLMChain. warnings.warn( /Users/harrisonchase/workplace/langchain/libs/langchain/langchain/chains/llm.py:316: UserWarning: The predict_and_parse method is deprecated, instead pass an output parser directly to LLMChain. warnings.warn( ...
langchain/LangChain_41_21.txt
ps://github.com/ehsanmok) [ @ ehsanmok ](https://github.com/ehsanmok) [ ![](https://avatars.githubusercontent.com/u/16619882?u=ed851c7ccfa20588d3cd5ca47e79d94c3e4b6427&v=4) ](https://github.com/Trevato) [ @ Trevato ](https://github.com/Trevato) [ ![](https://avatars.githubusercontent.com/u/13738772?u=1685c6916759c2...
langchain/langchain101part3bta_227_0.txt
Towards AI is the world's leading artificial intelligence (AI) and technology publication. Read by thought-leaders and decision-makers around the world.
langchain/LangChain_17_8.txt
def func(foo: Foo) -> int: """Sample function that expects a Foo type which is a pydantic model""" assert isinstance(foo, Foo) return foo.bar # Note that the input and output type are automatically inferred! # You do not need to specify them. # run...
langchain/retrievalinlangchain_16_0.txt
\--
langchain/langchain101part3bta_28_0.txt
## About Part 3 and the Course
langchain/langchain101part3bta_199_0.txt
[ ![](https://miro.medium.com/v2/resize:fit:875/1*5wQRP6gBvTQJpVtLvr_nhw.jpeg) ](https://towardsai.net/p/machine-learning/eccv-2020-best-paper-award-a-new- architecture-for-optical-flow-3 "ECCV 2020 Best Paper Award | A New Architecture For Optical Flow")
langchain/LangChain_33_0.txt
Skip to main content [ ![🦜️🔗 Langchain](/img/brand/wordmark.png) ![🦜️🔗 Langchain](/img/brand/wordmark-dark.png) ](/) [ Docs ](/docs/get_started/introduction) [ Use cases ](/docs/use_cases) [ Integrations ](/docs/integrations/platforms/) [ Guides ](/docs/guides/debugging) [ API ](https://api.python.langchain.com) ...
langchain/langchaindecodedpart_32_0.txt
# Use fake embeddings to test your pipeline from langchain.embeddings import FakeEmbeddings
langchain/langchain101part3bta_41_0.txt
![](https://miro.medium.com/v2/resize:fit:700/1*6ioWLhj6l4KuWPoOLl294Q.png)
langchain/langchain101part3bta_183_0.txt
[ __ 1 like ](https://towardsai.net/wp-admin/admin- ajax.php?action=process_simple_like&post_id=32854&nonce=a9dade1234&is_comment=0&disabled=true "Unlike")
langchain/LangChain_1_3.txt
x(all_docs, record_manager, vectorstore, cleanup="full", source_id_key="source") {'num_added': 2, 'num_updated': 0, 'num_skipped': 0, 'num_deleted': 0} Say someone deleted the first doc: del all_docs[0] all_docs [Document(page_content...
langchain/langchain101part3bta_100_0.txt
db = DocArrayInMemorySearch.from_documents( documents=documents, embedding=embedding )
langchain/LangChain_28_0.txt
Skip to main content [ ![🦜️🔗 Langchain](/img/brand/wordmark.png) ![🦜️🔗 Langchain](/img/brand/wordmark-dark.png) ](/) [ Docs ](/docs/get_started/introduction) [ Use cases ](/docs/use_cases) [ Integrations ](/docs/integrations/platforms/) [ Guides ](/docs/guides/debugging) [ API ](https://api.python.langchain.com) ...
langchain/langchain101part3bta_12_0.txt
## Publication
langchain/langchain101part3bta_205_0.txt
[ ![](https://miro.medium.com/v2/resize:fit:1250/0*oGHOmf5_PamKuVJw) ](https://towardsai.net/p/machine-learning/nlp-news-cypher-10-18-20 "NLP News Cypher | 10.18.20")
langchain/retrievalinlangchain_91_0.txt
Privacy
langchain/LangChain_14_4.txt
"context": retriever.with_config(run_name="Docs"), "question": RunnablePassthrough(), } | prompt | model | StrOutputParser() ) for chunk in retrieval_chain.stream( "Where did harrison work? " "Write 3 made up sentences about t...